Authentik driver for AdonisJS Ally
You can test this for another IdP like Keycloak i guess (not tested)
Install the package from your command line.
npm install --save adonis-ally-authentik
or
yarn add adonis-ally-authentik
node ace configure adonis-ally-authentik
// config/ally.ts
import { defineConfig } from '@adonisjs/ally'
import { AuthentikDriver } from 'adonis-ally-authentik'
import env from '#start/env'
const allyConfig = defineConfig({
authentik: AuthentikDriverService({
driver: 'authentik',
clientId: env.get('AUTHENTIK_CLIENT_ID', ''),
clientSecret: env.get('AUTHENTIK_CLIENT_SECRET', ''),
callbackUrl: env.get('AUTHENTIK_CALLBACK_URL', ''),
authorizeUrl: env.get('AUTHENTIK_AUTHORIZE_URL', ''),
accessTokenUrl: env.get('AUTHENTIK_ACCESSTOKEN_URL', ''),
userInfoUrl: env.get('AUTHENTIK_USERINFO_URL', ''),
})
})
The default scopes is "openid email profile", you can define it on the config with scopes
- Fork the repo
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'feat: Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request