Slack OpenID Connect strategy.
The Slack user endpoint does not provide data on email verification, email is considered unverified.
Configuration
:team_id- the team ID to restrict authorization for, optional, defaults to nil
See Assent.Strategy.OIDC for more.
Usage
config = [
client_id: "REPLACE_WITH_CLIENT_ID",
client_secret: "REPLACE_WITH_CLIENT_SECRET",
redirect_uri: "http://localhost:4000/auth/callback"
]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 = [
client_id: "REPLACE_WITH_CLIENT_ID",
client_secret: "REPLACE_WITH_CLIENT_SECRET",
team_id: "REPLACE_WITH_TEAM_ID",
redirect_uri: "http://localhost:4000/auth/callback"
]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.
Summary
Functions
Generates an OpenID Connect authorization URL.
Handles an OpenID Connect callback.
Fetches user data from an ID Token or the UserInfo endpoint.
Returns user claims without provider-specific normalization.
Functions
@spec authorize_url(Keyword.t()) :: Assent.Strategy.OIDC.on_authorize_url()
Generates an OpenID Connect authorization URL.
@spec callback(Keyword.t(), map()) :: Assent.Strategy.OIDC.on_callback()
Handles an OpenID Connect callback.
Fetches user data from an ID Token or the UserInfo endpoint.
Returns user claims without provider-specific normalization.