yesod-auth-oauth2-0.0.7: Library to authenticate with OAuth 2.0 for Yesod web applications.

Safe HaskellNone

Yesod.Auth.OAuth2

Description

Generic OAuth2 plugin for Yesod

  • See Yesod.Auth.OAuth2.Learn for example usage.

Synopsis

Documentation

authOAuth2Source

Arguments

:: YesodAuth m 
=> Text

Service name

-> OAuth2

Service details

-> (Manager -> AccessToken -> IO (Creds m))

This function defines how to take an AccessToken and retrieve additional information about the user, to be set in the session as Creds. Usually this means a second authorized request to api/me.json.

-> AuthPlugin m 

data YesodOAuth2Exception Source

Provider name and Aeson parse error