Looks like both auth token and refresh token has expired. Please suggest how to get new token.
Application name is ‘Actin’ and client_id is ‘LKszrWSjS26fhbXY7xB9Kw’
Looks like both auth token and refresh token has expired. Please suggest how to get new token.
Application name is ‘Actin’ and client_id is ‘LKszrWSjS26fhbXY7xB9Kw’
and then
after Authorize click it redirects to call back with code but that is invalid.
What is the "that is invalid"? The code? How do you use the code to exchange for a token?
We then pass the code to this ring central rest client method.
using RingCentral.Client.2.3.4\lib\RingCentral.dll
public Task<TokenInfo> Authorize(string authCode, string redirectUri);.
this is response i am getting using refresh token through postman.
{ "error": "invalid_grant", "errors": [ { "errorCode": "OAU-212", "message": "Token type mismatch" } ], "error_description": "Token type mismatch" }
There must be something incorrect in the way you authenticate or using the code to exchange for tokens. What endpoint you use in Postman to get the token? What language is your app actually written in?
Language is C# dot net.
Endpoint: https://platform.ringcentral.com/restapi/oauth/token.
Why you called the "/oauth/token" endpoint with those params? That is for getting a new access token using a refresh token.
In this case, you are logging in and you just get the code. You have to use the code to exchange for tokens.
- The grant_type must be set to "authorization_code"
- The code must be set with the code value you get in the call back
See this reference for more explanation.
Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.
Download RingCentral Phone for Desktop:
Tip: switch to the "sandbox mode" before logging in the app:
6 People are following this question.