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

Yesod.Auth.OAuth2.AzureADv2

Description

OAuth2 plugin for Azure AD using the new v2 endpoints.

  • Authenticates against Azure AD
  • Uses email as credentials identifier

Documentation

oauth2AzureADv2 Source #

Arguments

:: YesodAuth m 
=> Text

Tenant Id

If using a multi-tenant App, common can be given here.

-> Text

Client Id

-> Text

Client secret

-> AuthPlugin m 

oauth2AzureADv2Scoped Source #

Arguments

:: YesodAuth m 
=> [Text]

Scopes

-> Text

Tenant Id

If using a multi-tenant App, common can be given here.

-> Text

Client Id

-> Text

Client Secret

-> AuthPlugin m