Skip to content

Commit

Permalink
chore: code adjusted
Browse files Browse the repository at this point in the history
  • Loading branch information
augi committed Jan 9, 2024
1 parent 62fbdb9 commit c3c19ff
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package com.avast.grpc.jwt.keycloak.server;

import com.avast.grpc.jwt.server.JwtTokenParser;

import java.util.Collections;
import java.util.List;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.CompletionException;
Expand Down Expand Up @@ -34,7 +36,7 @@ public KeycloakJwtTokenParser(
new TokenVerifier.Predicate[] {
new IssuersCheck(issuers.toArray(new String[0])),
TokenVerifier.SUBJECT_EXISTS_CHECK,
new TokenVerifier.TokenTypeCheck(TokenUtil.TOKEN_TYPE_BEARER),
new TokenVerifier.TokenTypeCheck(Collections.singletonList(TokenUtil.TOKEN_TYPE_BEARER)),
TokenVerifier.IS_ACTIVE
};
}
Expand Down

0 comments on commit c3c19ff

Please sign in to comment.