adonis-ally-linkedin-openid-connect
v1.0.2
Published
Adonis ally driver to connect user using linkedin openid connect method
Downloads
11
Maintainers
Readme
AdonisJS LinkedIn OpenID Connect Ally Driver
This package provides an Ally driver for AdonisJS to integrate LinkedIn’s OpenID Connect authentication method. It enables seamless user login through LinkedIn, using the industry-standard OpenID Connect protocol according to their documentation. Perfect for applications that need to authenticate users via their LinkedIn accounts while securely handling the OpenID Connect flow.
Installation
npm install adonis-linkedin-openid
Add this lines in config/ally.ts
import env from '#start/env'
import { defineConfig } from '@adonisjs/ally'
import { LinkedinOpenidConnectService } from 'adonis-ally-linkedin-openid-connect'
const allyConfig = defineConfig({
linkedinOpenidConnect: LinkedinOpenidConnectService({
clientId: env.get('LINKEDIN_CLIENT_ID'),
clientSecret: env.get('LINKEDIN_CLIENT_SECRET'),
callbackUrl: env.get('LINKEDIN_CALLBACK_URL'),
}),
})
Now you can use it in your application
const linkedin = ally.use('linkedinOpenidConnect')