| Maintainer | krdlab@gmail.com |
|---|---|
| Stability | experimental |
| Safe Haskell | None |
| Language | Haskell2010 |
Web.OIDC.Client.CodeFlow
Contents
Description
- getAuthenticationRequestUrl :: (MonadThrow m, MonadCatch m) => OIDC -> Scope -> Maybe State -> Parameters -> m URI
- requestTokens :: OIDC -> Code -> Manager -> IO Tokens
- validateClaims :: Text -> Text -> IntDate -> JwtClaims -> IO ()
- getCurrentIntDate :: IO IntDate
Documentation
getAuthenticationRequestUrl Source
Arguments
| :: (MonadThrow m, MonadCatch m) | |
| => OIDC | |
| -> Scope | used to specify what are privileges requested for tokens. (use |
| -> Maybe State | used for CSRF mitigation. (recommended parameter) |
| -> Parameters | Optional parameters |
| -> m URI |
Make URL for Authorization Request.
requestTokens :: OIDC -> Code -> Manager -> IO Tokens Source
Request and validate tokens.
This function requests ID Token and Access Token to a OP's token endpoint, and validates the received ID Token.
Returned Tokens value is a valid.
If a HTTP error has occurred or a tokens validation has failed, this function throws OpenIdException.
For testing
getCurrentIntDate :: IO IntDate Source