Skip to content

Commit

Permalink
[Fix] fix client id register problem (#5648)
Browse files Browse the repository at this point in the history
* [Fix] fix client id register problem

* [Fix] fix client id register problem

---------

Co-authored-by: xiaoyu <xiaoyu@apache.org>
Co-authored-by: aias00 <rokkki@163.com>
  • Loading branch information
3 people authored Sep 3, 2024
1 parent 77756d8 commit e052e70
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@ protected AuthenticationInfo doGetAuthenticationInfo(final AuthenticationToken a
}

String clientIdFromToken = JwtUtils.getClientId(token);
if (StringUtils.isNotEmpty(dashboardUserVO.getClientId()) && !StringUtils.equals(dashboardUserVO.getClientId(), clientIdFromToken)) {
if (StringUtils.isNotEmpty(clientIdFromToken)
&& StringUtils.isNotEmpty(dashboardUserVO.getClientId())
&& !StringUtils.equals(dashboardUserVO.getClientId(), clientIdFromToken)) {
throw new AuthenticationException("clientId is invalid or does not match");
}

Expand Down

0 comments on commit e052e70

Please sign in to comment.