Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- testAuth0App :: IdpApplication 'AuthorizationCode Auth0
- testAuth0Idp :: Idp Auth0
- testGoogleIdp :: Idp Google
- testGoogleApp :: IdpApplication 'AuthorizationCode Google
- randomStateValue :: Text
- data DemoUser = DemoUser {}
- app :: IO ()
- indexH :: IORef (Maybe DemoUser) -> ActionM ()
- loginAuth0H :: ActionM ()
- loginGoogleH :: ActionM ()
- logoutH :: IORef (Maybe DemoUser) -> ActionM ()
- callbackH :: IORef (Maybe DemoUser) -> ActionM ()
- handleAuth0Callback :: ExchangeToken -> ExceptT Text IO DemoUser
- handleGoogleCallback :: ExchangeToken -> ExceptT Text IO DemoUser
- uriToText :: URI -> Text
- bslToText :: ByteString -> Text
- paramValue :: Text -> [Param] -> Either Text Text
- excepttToActionM :: Show a => ExceptT Text IO a -> ActionM a
- oauth2ErrorToText :: TokenRequestError -> Text
Configuration
testAuth0Idp :: Idp Auth0 Source #
randomStateValue :: Text Source #
You'll need to find out an better way to create state
which is recommended in https://www.rfc-editor.org/rfc/rfc6749#section-10.12
Web server
Instances
loginAuth0H :: ActionM () Source #
loginauth0
endpoint handler
loginGoogleH :: ActionM () Source #
logingoogle
endpoint handler
Utilities
bslToText :: ByteString -> Text Source #