@@ -14,14 +14,13 @@ import {
1414 UseGuards ,
1515} from "@nestjs/common" ;
1616import {
17+ ApiBearerAuth ,
1718 ApiForbiddenResponse ,
1819 ApiNotFoundResponse ,
1920 ApiOperation ,
2021 ApiTags ,
2122 ApiUnauthorizedResponse ,
2223} from "@nestjs/swagger" ;
23-
24- import { JwtAuthGuard } from "@auth/jwt-auth.guard" ;
2524import { ApplicationAdmin , GatewayAdmin , GlobalAdmin , Read , UserAdmin } from "@auth/roles.decorator" ;
2625import { RolesGuard } from "@auth/roles.guard" ;
2726import { DeleteResponseDto } from "@dto/delete-application-response.dto" ;
@@ -38,21 +37,21 @@ import { OrganizationService } from "@services/user-management/organization.serv
3837import { AuditLog } from "@services/audit-log.service" ;
3938import { ActionType } from "@entities/audit-log-entry" ;
4039import { ListAllEntitiesDto } from "@dto/list-all-entities.dto" ;
41- import { ApiAuth } from "@auth/swagger-auth-decorator" ;
4240import { checkIfUserHasAccessToOrganization , OrganizationAccessScope } from "@helpers/security-helper" ;
43- import { PermissionType } from "@enum/permission-type.enum " ;
41+ import { ComposeAuthGuard } from "@auth/compose-auth.guard " ;
4442
45- @UseGuards ( JwtAuthGuard , RolesGuard )
46- @ApiAuth ( )
43+ @UseGuards ( ComposeAuthGuard , RolesGuard )
44+ @ApiBearerAuth ( )
4745@ApiForbiddenResponse ( )
4846@ApiUnauthorizedResponse ( )
4947@ApiTags ( "Organization" )
5048@Controller ( "organization" )
5149@GlobalAdmin ( )
5250export class OrganizationController {
53- constructor ( private organizationService : OrganizationService ) { }
5451 private readonly logger = new Logger ( OrganizationController . name ) ;
5552
53+ constructor ( private organizationService : OrganizationService ) { }
54+
5655 @Post ( )
5756 @ApiOperation ( { summary : "Create a new Organization" } )
5857 async create (
0 commit comments