UNPKG

@shrinedev/loopback-keycloak-demo-app

Version:

Example Loopback App that integrates with Keycloak.

14 lines (13 loc) 538 B
/// <reference types="express" /> import { Request, RequestContext } from '@loopback/rest'; import { Setter, BindingKey } from '@loopback/core'; import { Gate } from '@shrinedev/loopback-gate'; export declare class TeamProfile { name: string; } export declare const CURRENT_TEAM: BindingKey<TeamProfile>; export declare class TeamGate implements Gate { readonly setCurrentTeam: Setter<TeamProfile>; constructor(setCurrentTeam: Setter<TeamProfile>); gate(context: RequestContext, request: Request): Promise<TeamProfile>; }