Skip to content

Commit

Permalink
Add check for null subject before checking if equal to clientId
Browse files Browse the repository at this point in the history
  • Loading branch information
mpgxvii committed Sep 26, 2024
1 parent d5f0613 commit dda9372
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ interface RadarToken {
* @return true if the client credentials flow was certainly used, false otherwise.
*/
val isClientCredentials: Boolean
get() = grantType == CLIENT_CREDENTIALS || subject == clientId
get() = grantType == CLIENT_CREDENTIALS || (subject != null && subject == clientId)

fun copyWithRoles(roles: Set<AuthorityReference>): RadarToken

Expand Down

0 comments on commit dda9372

Please sign in to comment.