Skip to content

Commit

Permalink
chore: remove temporary typings for enforcer
Browse files Browse the repository at this point in the history
  • Loading branch information
ferrerojosh committed Dec 23, 2020
1 parent 8e83890 commit 90d400f
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/guards/resource.guard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,6 @@ import { META_RESOURCE } from '../decorators/resource.decorator';
import { META_SCOPES } from '../decorators/scopes.decorator';
import { extractRequest } from '../util';

// Temporary until keycloak-connect can have full typescript definitions
// This is as of version 9.0.0
declare module 'keycloak-connect' {
interface Keycloak {
enforcer(
expectedPermissions: string | string[],
): (req: any, res: any, next: any) => any;
}
}

/**
* This adds a resource guard, which is permissive.
* Only controllers annotated with `@Resource` and methods with `@Scopes`
Expand Down

0 comments on commit 90d400f

Please sign in to comment.