A Microsoft Azure Entra ID driver for AdonisJS Ally.
npm i ally-azure-entraid
Add the driver configuration within the config/ally.ts
file of an AdonisJS application. For example:
import { AzureEntraIdService } from 'ally-azure-entraid'
defineConfig({
azure: AzureEntraIdService({
clientId: env.get('MICROSOFT_CLIENT_ID') || '',
clientSecret: env.get('MICROSOFT_CLIENT_SECRET') || '',
callbackUrl: env.get('MICROSOFT_CALLBACK_URL') || 'http://localhost:3333/auth/azure/callback',
tenantDomain: env.get('MICROSOFT_TENANT_ID') || '',
scopes: ['openid', 'profile', 'email'],
})
})