[keycloak-user] Adapter Token Verification

Kevin Berendsen kevin.berendsen at pharmapartners.nl
Tue Apr 11 06:20:59 EDT 2017


Hi community!

Is there any diagram of how token verification takes place in adapters? I have a public client and a bearer-only client which is basically a protected API. I wish to verify the token on each API request and it already does that out-of-the-box with Spring Security which is nice but how I'm 100% certain that the bearer token is valid?

In Keycloak.json it's possible to fill in a realm-public-key. When that key has a value in the JSON object, will the verification of the token only happen on the client (due to the signature within the token) or does it make an external request to the Keycloak endpoint to verify the token and fill the security context of the HttpSession?

Kind regards,

Kevin


More information about the keycloak-user mailing list