| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Network.Wai.Middleware.Auth.OAuth2
Synopsis
- data OAuth2 = OAuth2 {}
- oAuth2Parser :: ProviderParser
- data URIParseException = URIParseException URIParseError
- parseAbsoluteURI :: MonadThrow m => Text -> m URI
Documentation
General OAuth2 authentication Provider.
Constructors
| OAuth2 | |
Fields
| |
Instances
| ToJSON OAuth2 # | |
Defined in Network.Wai.Middleware.Auth.OAuth2 | |
| FromJSON OAuth2 # | |
| AuthProvider OAuth2 # | |
Defined in Network.Wai.Middleware.Auth.OAuth2 Methods getProviderName :: OAuth2 -> Text # getProviderInfo :: OAuth2 -> ProviderInfo # handleLogin :: OAuth2 -> Request -> [Text] -> Render ProviderUrl -> (UserIdentity -> IO Response) -> (Status -> ByteString -> IO Response) -> IO Response # | |
oAuth2Parser :: ProviderParser #
Aeson parser for OAuth2 provider.
Since: 0.1.0
data URIParseException #
Used for validating proper url structure. Can be thrown by
parseAbsoluteURI and consequently by handleLogin for OAuth2 Provider
instance.
Since: 0.1.2.0
Constructors
| URIParseException URIParseError |
Instances
| Show URIParseException # | |
Defined in Network.Wai.Middleware.Auth.OAuth2 Methods showsPrec :: Int -> URIParseException -> ShowS # show :: URIParseException -> String # showList :: [URIParseException] -> ShowS # | |
| Exception URIParseException # | |
Defined in Network.Wai.Middleware.Auth.OAuth2 Methods toException :: URIParseException -> SomeException # | |
parseAbsoluteURI :: MonadThrow m => Text -> m URI #
Parse absolute URI and throw URIParseException in case it is malformed
Since: 0.1.2.0