message: Adicionado log no controller de security
diff: -import { Body, Controller, Headers, HttpCode, Post, UseInterceptors, UnauthorizedException } from '@nestjs/common';
  +import {
  + Body,
  + Controller,
  + Headers,
  + HttpCode,
  + LoggerService,
  + Post,
  + UnauthorizedException,
  + UseInterceptors,
  +} from '@nestjs/common';
  import { SecurityService } from '../service';
  import { Constants } from '../../CommonsModule';
  import { AuthDTO, GeneratedTokenDTO } from '../dto';
  @@ -10,7 +19,10 @@ import { FileInterceptor } from '@nestjs/platform-express';
  @Controller(`/${Constants.OAUTH_ENDPOINT}`)
  export class SecurityController {
  - constructor(private readonly service: SecurityService) {
  + constructor(
  + private readonly service: SecurityService,
  + private readonly logger: LoggerService,
  + ) {
  }
  @UseInterceptors(FileInterceptor(''))
  @@ -24,6 +36,9 @@ export class SecurityController {
  if (!authorization)
  throw new UnauthorizedException();
  + // eslint-disable-next-line @typescript-eslint/camelcase
  + this.logger.log(`grant_type: ${grant_type}`);
  +
  // Basic <base64login>
  const [, base64Login]: string[] = authorization.split(' ');
  // eslint-disable-next-line @typescript-eslint/camelcase
  @@ -32,6 +47,7 @@ export class SecurityController {
  }
  // eslint-disable-next-line @typescript-eslint/camelcase
  if (grant_type === GrantTypeEnum.PASSWORD) {
  + this.logger.log(`username: ${username}, password: ${password}`);
  return this.service.validateUserCredentials(
  base64Login,
  username,
  @@ -43,7 +59,7 @@ export class SecurityController {
  return this.service.refreshToken(
  base64Login,
  refresh_token,
  - )
  + );
  }
  }
  @@ -51,6 +67,7 @@ export class SecurityController {
  @ApiBearerAuth()
  getTokenDetails(@Headers('authorization') authorizationHeader: string): ClientCredentials | User {
  const [, jwt] = authorizationHeader.split(' ');
  + this.logger.log(`jwt: ${jwt}`);
  return this.service.decodeToken(jwt);
  }
  }
  