PowAssent v0.2.2 PowAssent.Strategy.Slack View Source
Slack OAuth 2.0 strategy.
Usage
config :my_app, :pow_assent,
providers: [
slack: [
client_id: "REPLACE_WITH_CLIENT_ID",
client_secret: "REPLACE_WITH_CLIENT_SECRET",
strategy: PowAssent.Strategy.Slack
]
]
By default, the user can decide what team should be used for authorization. If you want to limit to a specific team, please pass a team id to the configuration:
config :my_app, :pow_assent,
providers: [
slack: [
client_id: "REPLACE_WITH_CLIENT_ID",
client_secret: "REPLACE_WITH_CLIENT_SECRET",
strategy: PowAssent.Strategy.Slack,
team_id: "XXXXXXX"
]
]
This value will be not be used if you set a authorization_params
key.
Instead you should set team: TEAM_ID
in the authorization_params
keyword
list.
Link to this section Summary
Functions
Callback implementation for PowAssent.Strategy.OAuth2.Base.default_config/1
Callback implementation for PowAssent.Strategy.OAuth2.Base.get_user/2
Callback implementation for PowAssent.Strategy.OAuth2.Base.normalize/2
Link to this section Functions
Callback implementation for PowAssent.Strategy.OAuth2.Base.default_config/1
.
Callback implementation for PowAssent.Strategy.OAuth2.Base.get_user/2
.
Callback implementation for PowAssent.Strategy.OAuth2.Base.normalize/2
.