Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AADSTS54005: OAuth2 Authorization code was already redeemed #243

Open
niharaobsec opened this issue Aug 7, 2021 · 2 comments
Open

AADSTS54005: OAuth2 Authorization code was already redeemed #243

niharaobsec opened this issue Aug 7, 2021 · 2 comments

Comments

@niharaobsec
Copy link

Following the steps https://docs.microsoft.com/en-us/office/office-365-management-api/get-started-with-office-365-management-apis to complete Oauth flow and running into this error:

AADSTS54005: OAuth2 Authorization code was already redeemed, please retry with a new valid code or use an existing refresh token.

We are not reusing the code, the secret and cert on the app are valid and have not expired.
This worked previously with this app and only started erroring today. Has something change with this flow?

@shreyaskarnik
Copy link

Running into similar issue

@niharaobsec
Copy link
Author

Did something change with the requests to https://login.windows.net/common/oauth2/authorize? Oauth flow hitting https://login.microsoftonline.com/common/oauth2/v2.0/authorize still works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants