athenea-keycloak-validation
TypeScript icon, indicating that this package has built-in type declarations

1.3.0 • Public • Published

Athenea Keycloak Validation

Middleware for validating Keycloak tokens in NestJS applications.

Installation

npm install athenea-keycloak-validation

Usage

import { MiddlewareConsumer, Module, NestModule, RequestMethod } from '@nestjs/common';
import { AppsModule } from './apps/apps.module';
import { AtheneaKeycloakValidationService } from 'athenea-keycloak-validation';

@Module({
  imports: [
    AppsModule    
  ],
})
export class AppModule implements NestModule {
  configure(consumer: MiddlewareConsumer) {
    consumer
      .apply(AtheneaKeycloakValidationService)
      .forRoutes('*')
  }
}

Configuration

Ensure to provide the OpenID Connect configuration URL in the openidConfigUrl environment variable.

License

ISC

Readme

Keywords

none

Package Sidebar

Install

npm i athenea-keycloak-validation

Weekly Downloads

33

Version

1.3.0

License

ISC

Unpacked Size

120 kB

Total Files

16

Last publish

Collaborators

  • itziarathenea