Skip to main content

createOAuthProviderFactory()

Home > @backstage/plugin-auth-node > createOAuthProviderFactory

Signature:

function createOAuthProviderFactory<TProfile>(options: {
authenticator: OAuthAuthenticator<unknown, TProfile>;
stateTransform?: OAuthStateTransform;
profileTransform?: ProfileTransform<OAuthAuthenticatorResult<TProfile>>;
signInResolver?: SignInResolver<OAuthAuthenticatorResult<TProfile>>;
signInResolverFactories?: {
[name in string]: SignInResolverFactory<OAuthAuthenticatorResult<TProfile>, unknown>;
};
}): AuthProviderFactory;

Parameters

ParameterTypeDescription
options{ authenticator: OAuthAuthenticator<unknown, TProfile>; stateTransform?: OAuthStateTransform; profileTransform?: ProfileTransform<OAuthAuthenticatorResult<TProfile>>; signInResolver?: SignInResolver<OAuthAuthenticatorResult<TProfile>>; signInResolverFactories?: { [name in string]: SignInResolverFactory<OAuthAuthenticatorResult<TProfile>, unknown>; }; }

Returns:

AuthProviderFactory