Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@dedel.alex/ally-keycloak

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dedel.alex/ally-keycloak

Keycloak authentication provider for AdonisJS

  • 1.0.12
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-93.33%
Maintainers
1
Weekly downloads
 
Created
Source

Install Keycloak in Adonis

  • 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',
      },
    }
    

Github project

https://github.com/aDedel/adonis-ally-keycloak

Keywords

FAQs

Package last updated on 08 Dec 2023

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc