News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Search
Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
Getting "Login error Error: Authorization code was not issued for this application" in Auth Code Flow
Tags: authentication
Dec 10, 2019 at 1:41pm   •   3 replies  •  0 likes
Element Developer

Hi

I am in Authorization Code Flow to get access token.


I am getting the "Login error Error: Authorization code was not issued for this application" at the first step getting the authorization code. I did GET method and it did work for the other application and I wanted to make another application and this is not working.

It is Server/Web App so Authorization Code Flow should work for it.

Why I am getting this error? Anybody knows the answer?

2 Answers
answered on Dec 16, 2019 at 12:03pm  

Here is the way to get access token from refresh token:

https://platform.devtest.ringcentral.com/restapi/oauth/token


username=<your user name>&password=<your password>&extension=<your extension>&grant_type=refresh_token&refresh_token=<your refresh token generated>

Now it will generate new access token from refresh token


 0
answered on Dec 11, 2019 at 3:04pm  

As you said you guessed that the access token is expired. In that case, use the refresh token to ask for a new access token. Post this body to the "auth" endpoint

{
  'grant_type' : 'refresh_token',
  'refresh_token' : "your refresh token"
}



 0



A new Community is coming to RingCentral!

Posts are currently read-only as we transition into our new platform.

We thank you for your patience
during this downtime.

Try Workflow Builder

Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!

Try RingCentral Workflow Builder

PRODUCTS
RingEX
Message
Video
Phone
OPEN ECOSYSTEM
Developer Platform
APIs
Integrated Apps
App Gallery
Developer support
Games and rewards

RESOURCES
Resource center
Blog
Product Releases
Accessibility
QUICK LINKS
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us