createLegacyAuthAdapters()
Home > @backstage/backend-common
> createLegacyAuthAdapters
An adapter that ensures presence of the auth and/or httpAuth services.
Signature:
function createLegacyAuthAdapters<TOptions extends {
auth?: AuthService;
httpAuth?: HttpAuthService;
userInfo?: UserInfoService;
identity?: IdentityService;
tokenManager?: TokenManager;
discovery: PluginEndpointDiscovery;
}, TAdapters = (TOptions extends {
auth?: AuthService;
} ? {
auth: AuthService;
} : {}) & (TOptions extends {
httpAuth?: HttpAuthService;
} ? {
httpAuth: HttpAuthService;
} : {}) & (TOptions extends {
userInfo?: UserInfoService;
} ? {
userInfo: UserInfoService;
} : {})>(options: TOptions): TAdapters;
Parameters
Parameter | Type | Description |
---|---|---|
options | TOptions |
Returns:
TAdapters