Safe Haskell | None |
---|---|
Language | Haskell2010 |
Tokens
getJWKs :: Keycloak [JWK] Source #
return JWKs from Keycloak. Its a set of keys that can be used to check signed tokens (JWTs)
getJWT :: Username -> Password -> Keycloak JWT Source #
Retrieve the user's token. This token can be used for every other Keycloak calls.
getClientJWT :: Keycloak JWT Source #
return a Client token (linked to a Client, not a User). It is useful to create Resources in that Client in Keycloak.
verifyJWT :: JWK -> JWT -> Keycloak ClaimsSet Source #
Verify a JWT. If sucessful, the claims are returned. Otherwise, a JWTError is thrown.
getClaimsUser :: ClaimsSet -> User Source #
Extract the user identity from a token. Additional attributes can be encoded in the token.