Sign in with Slack
Teams whose shared identity is their Slack workspace can now sign in to Apiome with Sign in with Slack, and link Slack beside any other provider on Linked accounts.
- For administrators. Slack is a new entry in System settings → Add Provider. It needs
the Client ID and Client Secret of a Slack app — no issuer.
Sign-in providers lists what to set on
Slack's side. The environment variables are
SLACK_CLIENT_IDandSLACK_CLIENT_SECRET. - Callback URL.
<BETTER_AUTH_URL>/api/auth/oauth2/callback/slack. Slack accepts onlyhttps://redirect URLs. - Scopes. The Slack app needs the
openid,profileandemailuser token scopes. - Other workspaces. A new Slack app signs in only members of the workspace that owns it. Turn on Manage Distribution → Activate Public Distribution to let people from other Slack workspaces sign in.
- Email addresses. Slack is a Trusted provider: a sign-in joins the account with the same address, or starts a new one, only when Slack reports the address as verified. Otherwise, sign in another way first and link Slack from Linked accounts.
- REST API.
GET /v1/admin/auth-providerslistsslackas an available provider, andPUT /v1/admin/auth-providers/slackstores its credentials.
