Skip to content

Commit

Permalink
Remove resource guard (#46)
Browse files Browse the repository at this point in the history
Remove unused keycloak resource guards
  • Loading branch information
marode-cap authored Oct 18, 2023
1 parent 8377021 commit 967f187
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/server/server.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { mappingErrorHandler } from '../shared/error/index.js';
import { PersonApiModule } from '../modules/person/person-api.module.js';
import { KeycloakAdministrationModule } from '../modules/keycloak-administration/keycloak-administration.module.js';
import { OrganisationApiModule } from '../modules/organisation/organisation-api.module.js';
import { AuthGuard, KeycloakConnectModule, ResourceGuard, RoleGuard } from 'nest-keycloak-connect';
import { AuthGuard, KeycloakConnectModule, RoleGuard } from 'nest-keycloak-connect';
import { APP_GUARD } from '@nestjs/core';
import { HealthModule } from '../modules/health/health.module.js';
import { UiBackendApiModule } from '../modules/ui-backend/ui-backend-api.module.js';
Expand Down Expand Up @@ -74,10 +74,6 @@ import { UiBackendApiModule } from '../modules/ui-backend/ui-backend-api.module.
provide: APP_GUARD,
useClass: RoleGuard,
},
{
provide: APP_GUARD,
useClass: ResourceGuard,
},
],
})
export class ServerModule {}

0 comments on commit 967f187

Please sign in to comment.