question

danilo-meireles avatar image
danilo-meireles asked ·

OAuth 2.0 Code flow - C#

Hello!
I have difficulty to start using RingCentral Api.
My application type is "Public" and my Platform Type is "Server/Web".
I am using C# to authorize but I got Bad Request and the following answser:

{
  "error" : "unauthorized_client",
  "error_description" : "Unauthorized for this grant type",
  "errors" : [ {
    "errorCode" : "OAU-251",
    "message" : "Unauthorized for this grant type"
  } ]
}

I saw that it is because my Platform Type (Server/Web) does not support password grant type and I need to use "OAuth 2.0 Code flow". 

I tried to find an example using "OAuth 2.0 Code flow" in C# but did not find anything. Could you please give me an example that works for me?

Thank you very much!


topic-default
1 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

· Write an Answer
Tyler Liu avatar image
Tyler Liu answered ·
Yes, here it is:  https://github.com/ringcentral/ringcentral-demos-oauth  There are C# samples.
Share
1 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.