| Safe Haskell | None |
|---|---|
| Language | Haskell98 |
Yesod.Auth.OAuth2
Description
Generic OAuth2 plugin for Yesod
- See Yesod.Auth.OAuth2.GitHub for example usage.
- authOAuth2 :: YesodAuth m => Text -> OAuth2 -> (Manager -> AccessToken -> IO (Creds m)) -> AuthPlugin m
- oauth2Url :: Text -> AuthRoute
- data YesodOAuth2Exception = InvalidProfileResponse Text ByteString
- module Network.OAuth.OAuth2
Documentation
Arguments
| :: YesodAuth m | |
| => Text | Service name |
| -> OAuth2 | Service details |
| -> (Manager -> AccessToken -> IO (Creds m)) | This function defines how to take an |
| -> AuthPlugin m |
data YesodOAuth2Exception Source
Provider name and Aeson parse error
Constructors
| InvalidProfileResponse Text ByteString |
module Network.OAuth.OAuth2