| Safe Haskell | None |
|---|---|
| Language | Haskell98 |
Yesod.Auth.OAuth2.Slack
Description
OAuth2 plugin for https://slack.com/
- Authenticates against slack
- Uses slack user id as credentials identifier
- Returns name, access_token, email, avatar, team_id, and team_name as extras
- data SlackScope
- oauth2Slack :: YesodAuth m => Text -> Text -> AuthPlugin m
- oauth2SlackScoped :: YesodAuth m => Text -> Text -> [SlackScope] -> AuthPlugin m
Documentation
data SlackScope Source #
Constructors
| SlackEmailScope | |
| SlackTeamScope | |
| SlackAvatarScope |
Arguments
| :: YesodAuth m | |
| => Text | Client ID |
| -> Text | Client Secret |
| -> AuthPlugin m |
Auth with Slack
Requests identity.basic scopes and uses the user's Slack ID as the
identifier.Creds
Arguments
| :: YesodAuth m | |
| => Text | Client ID |
| -> Text | Client Secret |
| -> [SlackScope] | |
| -> AuthPlugin m |
Auth with Slack
Requests custom scopes and uses the user's Slack ID as the
identifier.Creds