mirror of
https://github.com/freckle/yesod-auth-oauth2.git
synced 2026-01-11 11:48:29 +01:00
This is the same as the `AzureAD` plugin except: 1. It uses tenant-specific `microsoftonline.com` v2 OAuth2 endpoints (hence the name), which means accepting a new Tenant Id argument 2. It uses a space instead of `,` as the scopes separator Users of multi-tenant apps can provide a Tenant Id of `"common"`. I'm also not certain if the space-vs-comma scopes separator represents a bug in the `AzureAD` plugin, or just a difference in the actual v2 APIs. This inherits the behavior of using email address as the `credIdent` although this is definitely an `id` field in the User Response. I'm not sure if there are trade-offs one way or another. Using `id` could mean transparently handling Azure users changing their email, but I suspect your identity is implicitly tied to email within Azure anyway, so that would not be a case we'll ever see. In the future, we can deprecate the `AzureAD` plugin and suggest users migrate to this one.
62 lines
1.1 KiB
Plaintext
62 lines
1.1 KiB
Plaintext
# shellcheck disable=SC2034
|
|
#
|
|
# Copy this file to .env and update the credentials for the providers you are
|
|
# trying to test. These variables must all have non-empty values for the
|
|
# application to boot, but you only need to set real values for those Providers
|
|
# you plan to try.
|
|
#
|
|
###
|
|
|
|
AUTH0_HOST=x
|
|
AUTH0_CLIENT_ID=x
|
|
AUTH0_CLIENT_SECRET=x
|
|
|
|
AZURE_AD_CLIENT_ID=x
|
|
AZURE_AD_CLIENT_SECRET=x
|
|
|
|
AZURE_ADV2_TENANT_ID=x
|
|
AZURE_ADV2_CLIENT_ID=x
|
|
AZURE_ADV2_CLIENT_SECRET=x
|
|
|
|
BATTLE_NET_CLIENT_ID=x
|
|
BATTLE_NET_CLIENT_SECRET=x
|
|
|
|
BITBUCKET_CLIENT_ID=x
|
|
BITBUCKET_CLIENT_SECRET=x
|
|
|
|
CLASSLINK_CLIENT_ID=x
|
|
CLASSLINK_CLIENT_SECRET=x
|
|
|
|
EVE_ONLINE_CLIENT_ID=x
|
|
EVE_ONLINE_CLIENT_SECRET=x
|
|
|
|
GITHUB_CLIENT_ID=x
|
|
GITHUB_CLIENT_SECRET=x
|
|
|
|
GITLAB_CLIENT_ID=x
|
|
GITLAB_CLIENT_SECRET=x
|
|
|
|
GOOGLE_CLIENT_ID=x
|
|
GOOGLE_CLIENT_SECRET=x
|
|
|
|
NYLAS_CLIENT_ID=x
|
|
NYLAS_CLIENT_SECRET=x
|
|
|
|
SALES_FORCE_CLIENT_ID=x
|
|
SALES_FORCE_CLIENT_SECRET=x
|
|
|
|
SLACK_CLIENT_ID=x
|
|
SLACK_CLIENT_SECRET=x
|
|
|
|
SPOTIFY_CLIENT_ID=x
|
|
SPOTIFY_CLIENT_SECRET=x
|
|
|
|
TWITCH_CLIENT_ID=x
|
|
TWITCH_CLIENT_SECRET=x
|
|
|
|
UPCASE_CLIENT_ID=x
|
|
UPCASE_CLIENT_SECRET=x
|
|
|
|
WORDPRESS_DOT_COM_CLIENT_ID=x
|
|
WORDPRESS_DOT_COM_CLIENT_SECRET=x
|