yesod-auth-oauth2-0.7.0.3: OAuth 2.0 authentication plugins
Safe HaskellSafe-Inferred
LanguageHaskell2010

Yesod.Auth.OAuth2.Dispatch

Synopsis

Documentation

type FetchCreds m = Manager -> OAuth2Token -> IO (Creds m) Source #

How to take an OAuth2Token and retrieve user credentials

dispatchAuthRequest Source #

Arguments

:: Text

Name

-> OAuth2

Service details

-> FetchToken

How to get a token

-> FetchCreds m

How to get credentials

-> Text

Method

-> [Text]

Path pieces

-> AuthHandler m TypedContent 

Dispatch the various OAuth2 handshake routes