yesod-auth-oauth2-0.3.0: OAuth 2.0 authentication plugins

Safe HaskellNone
LanguageHaskell98

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

Synopsis

Documentation

oauth2Slack Source #

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 Creds identifier.

oauth2SlackScoped Source #

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 Creds identifier.