@antislop/ally-slack
v0.1.1
Published
A Slack driver for AdonisJS Ally
Readme
AdonisJS Ally Slack Driver
A Sign in with Slack (OpenID Connect) driver for AdonisJS Ally.
Installation
npm install @antislop/ally-slack@adonisjs/core and @adonisjs/ally are peer dependencies. You should already have them installed.
Usage
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'],
}),
});Scopes
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.
