A Sign in with Slack (OpenID Connect) driver for AdonisJS Ally.
npm install @antislop/ally-slack@adonisjs/core and @adonisjs/ally are peer dependencies. You should already have them installed.
Import and use SlackDriverService in your config/ally.ts file:
import { defineConfig } from "@adonisjs/ally";
import { SlackDriverService } from "@antislop/ally-slack";
const allyConfig = defineConfig({
slack: SlackDriverService({
clientId: ...,
clientSecret: ...,
callbackUrl: ...,
scopes: ['openid', 'profile', 'email'],
}),
});Slack OpenID Connect supports:
| Scope | Description |
|---|---|
openid |
Required for Sign in with Slack |
profile |
(Optional) Name and profile images |
email |
(Optional) Email address |
If left unspecified, the default scopes include all of the above.