Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AdonisJS Ally Slack Driver

NPM version

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.

License

MIT

About

A Slack driver for AdonisJS Ally

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages