yesod-auth-oauth2-0.5.1.0: OAuth 2.0 authentication plugins

Safe HaskellNone
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

-> FetchCreds m

How to get credentials

-> Text

Method

-> [Text]

Path pieces

-> AuthHandler m TypedContent 

Dispatch the various OAuth2 handshake routes