question

NancyAdmin-0608 avatar image
0 Votes"
NancyAdmin-0608 asked NancyAdmin-0608 commented

AADSTS54005: OAuth2 Authorization code was already redeemed

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.




azure-ad-authenticationazure-ad-authentication-protocols
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@NancyAdmin-0608
As this issue is more related to Authorization, but tag "office-itpro" focus more on general issues of Office clients, I would remove it.
Thanks for your understanding.

1 Vote 1 ·

Sorry about that and thanks for removing the tag @emilyhua-msft. Do you have recommendations on other tags I should use to get some eyes on this?

0 Votes 0 ·

0 Answers