wai-middleware-auth-0.2.1.0: Authentication middleware that secures WAI application

Safe HaskellNone
LanguageHaskell2010

Network.Wai.Middleware.Auth.OAuth2

Synopsis

Documentation

oAuth2Parser :: ProviderParser Source #

Aeson parser for OAuth2 provider.

Since: 0.1.0

parseAbsoluteURI :: MonadThrow m => Text -> m URI Source #

Parse absolute URI and throw URIParseException in case it is malformed

Since: 0.1.2.0

getAccessToken :: Request -> Maybe OAuth2Token Source #

Get the AccessToken for the current user.

If called on a Request behind the middleware, should always return a Just value.

Since: 0.2.0.0