nest-keycloak-connect
Version:
keycloak-nodejs-connect module for Nest
12 lines (11 loc) • 364 B
TypeScript
import { RoleMatchingMode } from '../constants';
export interface RoleDecoratorOptionsInterface {
/**
* The roles to match at the application/client, prefix any realm-level roles with "realm:" (i.e realm:admin)
*/
roles: string[];
/**
* Role matching mode, defaults to {@link RoleMatchingMode.ANY}
*/
mode?: RoleMatchingMode;
}