Skip to content

Commit

Permalink
Fix issue of revoking refresh tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
dushaniw committed Oct 27, 2023
1 parent bf6bc20 commit 365e7d3
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ public OAuthRevocationResponseDTO revokeTokenByOAuthClient(OAuthRevocationReques
}
if (refreshTokenFirst) {
refreshTokenDO = OAuth2ServiceComponentHolder.getInstance().getTokenProvider()
.getVerifiedRefreshToken(revokeRequestDTO.getToken(), revokeRequestDTO.getConsumerKey());
.getVerifiedRefreshToken(revokeRequestDTO.getConsumerKey(), revokeRequestDTO.getToken());
if (refreshTokenDO == null ||
StringUtils.isEmpty(refreshTokenDO.getRefreshTokenState()) ||
!(OAuthConstants.TokenStates.TOKEN_STATE_ACTIVE
Expand All @@ -573,8 +573,8 @@ public OAuthRevocationResponseDTO revokeTokenByOAuthClient(OAuthRevocationReques
.getVerifiedAccessToken(revokeRequestDTO.getToken(), true);
if (accessTokenDO == null) {
refreshTokenDO = OAuth2ServiceComponentHolder.getInstance().getTokenProvider()
.getVerifiedRefreshToken(revokeRequestDTO.getToken(),
revokeRequestDTO.getConsumerKey());
.getVerifiedRefreshToken(revokeRequestDTO.getConsumerKey(),
revokeRequestDTO.getToken());
if (refreshTokenDO == null ||
StringUtils.isEmpty(refreshTokenDO.getRefreshTokenState()) ||
!(OAuthConstants.TokenStates.TOKEN_STATE_ACTIVE
Expand Down

0 comments on commit 365e7d3

Please sign in to comment.