Skip to main content
Version: Next

createAuthProviderIntegration()

Home > @backstage/plugin-auth-backend > createAuthProviderIntegration

Creates a standardized representation of an integration with a third-party auth provider.

The returned object facilitates the creation of provider instances, and supplies built-in sign-in resolvers for the specific provider.

Signature:

function createAuthProviderIntegration<TCreateOptions extends unknown[], TResolvers extends {
[name in string]: (...args: any[]) => SignInResolver<any>;
}>(config: {
create: (...args: TCreateOptions) => AuthProviderFactory;
resolvers?: TResolvers;
}): Readonly<{
create: (...args: TCreateOptions) => AuthProviderFactory;
resolvers: Readonly<string extends keyof TResolvers ? never : TResolvers>;
}>;

Parameters

Parameter

Type

Description

config

{ create: (...args: TCreateOptions) => AuthProviderFactory; resolvers?: TResolvers; }

**Returns:**

Readonly<{ create: (...args: TCreateOptions) => AuthProviderFactory; resolvers: Readonly<string extends keyof TResolvers ? never : TResolvers>; }>