OAuth2 token refresh issue to Azure AD

Moderator: crythias

Post Reply
KevP
Znuny newbie
Posts: 20
Joined: 09 May 2023, 16:52
Znuny Version: 7.0
Real Name: Kevin Pattison

OAuth2 token refresh issue to Azure AD

Post by KevP »

Getting this error and don't know how to resolve it without deleting the entire integration and setting it up again:
Message: Response for request for token config with ID 1 and request type 'TokenByAuthorizationCode' was not '200 OK'. invalid_grant (error code 54005): AADSTS54005: OAuth2 Authorization code was already redeemed, please retry with a new valid code or use an existing refresh token.
Any help appreciated.
skullz
Znuny superhero
Posts: 624
Joined: 24 Feb 2012, 03:58
Znuny Version: LTS and Features
Real Name: Mo Azfar
Location: Kuala Lumpur, MY
Contact:

Re: OAuth2 token refresh issue to Azure AD

Post by skullz »

No expert in this, but first i check the url authorization and url for token in Oauth2 screen.

Url authorization should end with '/authorize'
Url token should ens with '/token'
KevP
Znuny newbie
Posts: 20
Joined: 09 May 2023, 16:52
Znuny Version: 7.0
Real Name: Kevin Pattison

Re: OAuth2 token refresh issue to Azure AD

Post by KevP »

I resolved this by creating a new OAuth2 connection and migrating the Postmaster Mail Accounts over to it.
Post Reply