AADSTS700082: The refresh token has expired due to inactivity.
See original GitHub issueSystem information:
- Windows 10
- DBeaver version - 21.3.3
- Additional extensions
Connection specification:
- Azure SQL database
- Azure SQL driver
- Do you use tunnels or proxies (SSH, SOCKS, etc)? - no
Describe the problem you’re observing:
When an Azure AD refresh token expires, the driver does not use an access token to generate a new refresh token, or open a browser based workflow to generate a new refresh token. When the refresh token expires, you can never log into the database again.
Tried: disconnecting and reconnecting removing and re-adding connection
Steps to reproduce, if exist:
Log into Azure SQL database with AAD & MFA authentication Wait until refresh token expires (default is 12 hours now) Try to log into database again.
Include any warning/errors/backtraces from the logs
Failed to authenticate the user <username> in Active Directory (Authentication=ActiveDirectoryInteractive).
java.lang.RuntimeException: AADSTS700082: The refresh token has expired due to inactivity. The token was issued on 2022-01-25T14:46:36.9135534Z and was inactive for 12:00:00.
Trace ID: db40d60d-a197-4dd8-b301
Correlation ID: a7c7e7ae-631a-4bba-8e1c
Timestamp: 2022-01-26 12:12:25Z
java.lang.RuntimeException: AADSTS700082: The refresh token has expired due to inactivity. The token was issued on 2022-01-25T14:46:36.9135534Z and was inactive for 12:00:00.
Trace ID: db40d60d-a197-4dd8-b301
Correlation ID: a7c7e7ae-631a-4bba-8e1c
Timestamp: 2022-01-26 12:12:25Z
AADSTS700082: The refresh token has expired due to inactivity. The token was issued on 2022-01-25T14:46:36.9135534Z and was inactive for 12:00:00.
Trace ID: db40d60d-a197-4dd8-b301
Correlation ID: a7c7e7ae-631a-4bba
Timestamp: 2022-01-26 12:12:25Z
AADSTS700082: The refresh token has expired due to inactivity. The token was issued on 2022-01-25T14:46:36.9135534Z and was inactive for 12:00:00.
Trace ID: db40d60d-a197-4dd8-b301
Correlation ID: a7c7e7ae-631a-4bba-8e1c
Timestamp: 2022-01-26 12:12:25Z
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
"error":"invalid_grant","error_description":"AADSTS700082 ...
{"error":"invalid_grant","error_description":"AADSTS700082: The refresh token has expired due to inactivity. The token ...
Read more >Solved: OAuth Refresh token has expired after 90 days
AADSTS700082 : The refresh token has expired due to inactivity. The token was issued on 2019-01-25T11:59:32.0690372Z and was inactive for 90.00:00:00. Trace ID: ......
Read more >Refresh token expiry and the corresponding error message
Here is an example of the error message: AADSTS700082: The refresh token has expired due to inactivity. The token was issued on 2018-10-19T17:26 ......
Read more >Azure refresh token expires despite using a confidential client
The error I'm getting now on refresh token request : AADSTS700082: The refresh token has expired due to inactivity. The token was issued...
Read more >AADSTS700082 The refresh token has expired due to inactivity
When using Office365 activity an error is thrown: AADSTS700082 The refresh token has expired due to inactivity is because the “Access” and “ ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Interesting solution @pinei
Then keep us in the know, because your decision will become the basis of the upcoming fix from our side.
Problem was solved updating the authentication library (was 1.9.1)
Library: com.microsoft.azure:msal4j:RELEASE Version: 1.11.3
Don’t know if the problem will be back if I change my AD password again