mirror of
https://github.com/freckle/yesod-auth-oauth2.git
synced 2026-01-11 19:58:28 +01:00
Add AzureAD to example app
This commit is contained in:
parent
3431619465
commit
01fd9541bf
@ -5,6 +5,9 @@
|
||||
# you plan to try.
|
||||
#
|
||||
###
|
||||
AZURE_AD_CLIENT_ID=x
|
||||
AZURE_AD_CLIENT_SECRET=x
|
||||
|
||||
BATTLE_NET_CLIENT_ID=x
|
||||
BATTLE_NET_CLIENT_SECRET=x
|
||||
|
||||
|
||||
@ -35,6 +35,7 @@ import Network.Wai.Handler.Warp (runEnv)
|
||||
import System.Environment (getEnv)
|
||||
import Yesod
|
||||
import Yesod.Auth
|
||||
import Yesod.Auth.OAuth2.AzureAD
|
||||
import Yesod.Auth.OAuth2.BattleNet
|
||||
import Yesod.Auth.OAuth2.Bitbucket
|
||||
import Yesod.Auth.OAuth2.EveOnline
|
||||
@ -133,7 +134,8 @@ mkFoundation = do
|
||||
--
|
||||
-- FIXME: oauth2BattleNet is quite annoying!
|
||||
--
|
||||
[ loadPlugin (oauth2BattleNet [whamlet|TODO|] "en") "BATTLE_NET"
|
||||
[ loadPlugin oauth2AzureAD "AZURE_AD"
|
||||
, loadPlugin (oauth2BattleNet [whamlet|TODO|] "en") "BATTLE_NET"
|
||||
, loadPlugin oauth2Bitbucket "BITBUCKET"
|
||||
, loadPlugin (oauth2Eve Plain) "EVE_ONLINE"
|
||||
, loadPlugin oauth2GitHub "GITHUB"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user