| Safe Haskell | None |
|---|---|
| Language | Haskell98 |
Snap.Snaplet.CustomAuth.OAuth2
Documentation
data OAuth2Settings u i e b Source #
Constructors
| IAuthBackend u i e b => OAuth2Settings | |
Fields
| |
data AuthFailure e Source #
Constructors
| Action OAuth2ActionFailure |
Instances
| Show e => Show (AuthFailure e) Source # | |
data OAuth2Failure Source #
Constructors
| StateNotStored | |
| StateNotReceived | |
| ExpiredState | |
| BadState | |
| ConfigurationError | |
| IdExtractionFailed | |
| NoStoredToken | |
| AlreadyUser | |
| AlreadyLoggedIn | |
| IdentityInUse | |
| ProviderError (Maybe Text) | |
| AccessTokenFetchError |
Instances
data OAuth2Stage Source #
Instances
addOAuth2Splices :: Snaplet (Heist b) -> SnapletLens b (AuthManager u e b) -> Initializer b v () Source #
oauth2Init :: IAuthBackend u i e b => OAuth2Settings u i e b -> Initializer b (AuthManager u e b) (HashMap Text Provider) Source #
saveAction :: (IAuthBackend u i e b, Binary a) => Bool -> Text -> a -> Handler b (AuthManager u e b) () Source #
redirectToProvider :: Text -> Handler b (AuthManager u e b) Bool Source #