keycloak-angular
Version:
Easy Keycloak setup for Angular applications
20 lines (19 loc) • 648 B
TypeScript
import { KeycloakConfig } from './keycloak-config';
export declare type HttpMethods = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'OPTIONS' | 'HEAD' | 'PATCH';
export interface ExcludedUrl {
url: string;
httpMethods?: HttpMethods[];
}
export interface ExcludedUrlRegex {
urlPattern: RegExp;
httpMethods?: HttpMethods[];
}
export interface KeycloakOptions {
config?: string | KeycloakConfig;
initOptions?: Keycloak.KeycloakInitOptions;
enableBearerInterceptor?: boolean;
loadUserProfileAtStartUp?: boolean;
bearerExcludedUrls?: (string | ExcludedUrl)[];
authorizationHeaderName?: string;
bearerPrefix?: string;
}