Safe Haskell | None |
---|---|
Language | Haskell2010 |
Yesod.Auth.OAuth2.BattleNet
Description
OAuth2 plugin for Battle.Net
- Authenticates against battle.net.
- Uses user's id as credentials identifier.
- Returns user's battletag in extras.
Synopsis
- oauth2BattleNet :: YesodAuth m => WidgetFor m () -> Text -> Text -> Text -> AuthPlugin m
- oAuth2BattleNet :: YesodAuth m => Text -> Text -> Text -> WidgetFor m () -> AuthPlugin m
Documentation
Arguments
:: YesodAuth m | |
=> WidgetFor m () | Login widget |
-> Text | User region (e.g. "eu", "cn", "us") |
-> Text | Client ID |
-> Text | Client Secret |
-> AuthPlugin m |
oAuth2BattleNet :: YesodAuth m => Text -> Text -> Text -> WidgetFor m () -> AuthPlugin m Source #
Deprecated: Use oauth2BattleNet