Skip to content

Commit

Permalink
Merge pull request #3450 from kgudel/optimizeKeycloakCalls
Browse files Browse the repository at this point in the history
Only Get Keycloak Public Key on Platform Startup
  • Loading branch information
BarakStout authored Sep 7, 2021
2 parents 103789f + 6d38183 commit a00dc8c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ class KeycloakTokenVerifier(keycloakDeployment: KeycloakDeployment)(
val realm = config.getString("keycloak.realm")
val authUrl = config.getString("keycloak.auth.server.url")
val timeout = config.getInt("hmda.http.timeout").seconds
val fKid = getKid(keycloakDeployment)

override def verifyToken(token: String): Future[AccessToken] = {
val fKid = getKid(keycloakDeployment)
fKid.map { kid =>
RSATokenVerifier.verifyToken(
token,
Expand Down

0 comments on commit a00dc8c

Please sign in to comment.