question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AADSTS700082: The refresh token has expired due to inactivity.

See original GitHub issue

System 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:closed
  • Created 2 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
LonwoLonwocommented, Jun 8, 2022

Interesting solution @pinei

Then keep us in the know, because your decision will become the basis of the upcoming fix from our side.

0reactions
pineicommented, Jun 8, 2022

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found