oidc-client-0.2.0.0: OpenID Connect 1.0 library for RP

Maintainerkrdlab@gmail.com
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Web.OIDC.Client.CodeFlow

Contents

Description

 

Synopsis

Documentation

getAuthenticationRequestUrl Source

Arguments

:: (MonadThrow m, MonadCatch m) 
=> OIDC 
-> Scope

used to specify what are privileges requested for tokens. (use ScopeValue)

-> 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

validateClaims :: Text -> Text -> IntDate -> JwtClaims -> IO () Source