Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,367,377
Community Members
 
Community Events
168
Community Groups

Authorization code for OAUTH 2.0 gets invalid

Hi Team,

I am trying to use Ouath to authenticate API calls. To get access token I use authorization code received by https://developer.atlassian.com/cloud/confluence/oauth-2-3lo-apps/#1--direct-the-user-to-the-authorization-url-to-get-an-authorization-code.

But after some time I start getting Unauthorized access and for authorization code as "

authorization_code is invalid". 
Can you please help me with how can I use one authorization code  for lifetime so that I just need to refresh access_token. Or is there way to get authorization code via code.

1 answer

The tokens will expire after some time, and you must go through the token flow again.  However I believe the expiry is 1 year.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD Trial
PERMISSIONS LEVEL
Site Admin
TAGS

Atlassian Community Events