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
AUTHENTIK_CLIENT_ID: Env.schema.string(),
AUTHENTIK_CLIENT_SECRET: Env.schema.string(),
AUTHENTIK_CALLBACK_URL: Env.schema.string(),
AUTHENTIK_AUTHORIZE_URL: Env.schema.string(),
AUTHENTIK_USERINFO_URL: Env.schema.string(),
AUTHENTIK_ACCESSTOKEN_URL: Env.schema.string(),
const allyConfig: AllyConfig = {
// ... other drivers
authentik: {
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'),
userInfoUrl: Env.get('AUTHENTIK_USERINFO_URL'),
accessTokenUrl: Env.get('AUTHENTIK_ACCESSTOKEN_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