Skip to content

Commit

Permalink
fix(jans-auth-server): when obtain new token using refresh token, che…
Browse files Browse the repository at this point in the history
…ck whether scope is null
  • Loading branch information
Milton-Ch committed Dec 22, 2022
1 parent 3028a94 commit d9a1426
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public class TokenExchangeService {
private AttributeService attributeService;

public void rotateDeviceSecretOnRefreshToken(HttpServletRequest httpRequest, AuthorizationGrant refreshGrant, String scope) {
if (!scope.contains(ScopeConstants.DEVICE_SSO)) {
if (StringUtils.isBlank(scope) || !scope.contains(ScopeConstants.DEVICE_SSO)) {
return;
}
if (StringUtils.isBlank(refreshGrant.getSessionDn())) {
Expand Down

0 comments on commit d9a1426

Please sign in to comment.