You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi guys! Glad to see you all.
When a client exchanges an authorization code for an access token, we forget to check the expiration date of the authorization code. Perhaps if (authorizationCode.isInvalidated()) { throw new OAuth2AuthenticationException(new OAuth2Error(OAuth2ErrorCodes.INVALID_GRANT)); } you can replace like this if (authorizationCode.isInvalidated() || authorizationCode.isExpired()) { throw new OAuth2AuthenticationException(new OAuth2Error(OAuth2ErrorCodes.INVALID_GRANT)); }.
The text was updated successfully, but these errors were encountered:
jgrandja
changed the title
OAuth2AuthorizationCodeAuthenticationProvider should check if the authorization code has expired.
OAuth2AuthorizationCodeAuthenticationProvider should check if the code has expired
May 20, 2021
Hi guys! Glad to see you all.
When a client exchanges an authorization code for an access token, we forget to check the expiration date of the authorization code. Perhaps
if (authorizationCode.isInvalidated()) { throw new OAuth2AuthenticationException(new OAuth2Error(OAuth2ErrorCodes.INVALID_GRANT)); }
you can replace like thisif (authorizationCode.isInvalidated() || authorizationCode.isExpired()) { throw new OAuth2AuthenticationException(new OAuth2Error(OAuth2ErrorCodes.INVALID_GRANT)); }
.The text was updated successfully, but these errors were encountered: