Microsoft Secure Tech Accelerator
Apr 03 2024, 07:00 AM - 11:00 AM (PDT)
Microsoft Tech Community
SOLVED

Azure AD OAuth 2.0 Access Token has expired

Copper Contributor

The azure access token that we are creating that will work for 60 minutes.

 

How we can exetnd it to 1 month, 3 months ?

 

is there any way to use same access toke for longer time.

1 Reply
best response confirmed by Imran Bagwan (Copper Contributor)
Solution

You get two tokens - the access one is valid for 1hour, the refresh one (which can be used to renew the access token) can be valid for up to 90 days. Read the documentation here: https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-authentication-scen...

1 best response

Accepted Solutions
best response confirmed by Imran Bagwan (Copper Contributor)
Solution

You get two tokens - the access one is valid for 1hour, the refresh one (which can be used to renew the access token) can be valid for up to 90 days. Read the documentation here: https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-authentication-scen...

View solution in original post