import { Body , Controller , Get , Next , Post , Query , UsePipes , ValidationPipe , } from '@nestjs/common' ; import { LoggerService } from '@fc/logger' ; import { OidcProviderRoutes } from '@fc/oidc-provider/enums' ; import { AuthorizeParamsDto } from '../dto' ; @ Controller ( ) export class OidcProviderController { constructor ( private readonly logger ) { this . logger . setContext ( this . constructor . name ) ; } see https TODO see https @ Get ( OidcProviderRoutes . AUTHORIZATION ) @ UsePipes ( new ValidationPipe ( { transform : true , whitelist : true , forbidNonWhitelisted : true , } ) ) getAuthorize ( @ Next ( ) next , @ Query ( ) query ) { this . logger . trace ( { route : OidcProviderRoutes . AUTHORIZATION , method : 'GET' , name : 'OidcProviderRoutes.AUTHORIZATION' , query , } ) ; return next ( ) ; } see https TODO see https @ Post ( OidcProviderRoutes . AUTHORIZATION ) @ UsePipes ( new ValidationPipe ( { transform : true , whitelist : true , forbidNonWhitelisted : true , } ) ) postAuthorize ( @ Next ( ) next , @ Body ( ) body ) { this . logger . trace ( { route : OidcProviderRoutes . AUTHORIZATION , method : 'POST' , name : 'OidcProviderRoutes.AUTHORIZATION' , body , } ) ; return next ( ) ; } }