
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@dedel.alex/ally-keycloak
Advanced tools
Run node ace configure @dedel.alex/ally-keycloak
. The configure command needs the package name and not the package path.
Inform typescript about your driver by defining a mapping inside the contracts/ally.ts
file.
import { KeycloakDriverConfig, KeycloakDriver } from '@dedel.alex/ally-keycloak/build/standalone'
declare module '@ioc:Adonis/Addons/Ally' {
interface SocialProviders {
keycloak: {
config: KeycloakDriverConfig
implementation: KeycloakDriver
}
}
}
Follow the Adonis official process to add Social authentication: https://docs.adonisjs.com/guides/auth/social
Define the config inside the config/ally.ts
file as follows:
import Env from '@ioc:Adonis/Core/Env'
const allyConfig = {
/*
|--------------------------------------------------------------------------
| Keycloak driver
|--------------------------------------------------------------------------
*/
keycloak: {
driver: 'keycloak',
keycloakUrl: 'http://localhost:8080/realms/{realm}/protocol/openid-connect/{action}',
realm: Env.get('KEYCLOAK_REALM'),
clientId: Env.get('KEYCLOAK_CLIENT_ID'),
clientSecret: Env.get('KEYCLOAK_CLIENT_SECRET'),
callbackUrl: 'http://localhost:3333/keycloak/callback',
},
}
FAQs
Keycloak authentication provider for AdonisJS
We found that @dedel.alex/ally-keycloak demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.