createOAuthProviderFactory()
Home > @backstage/plugin-auth-node
> createOAuthProviderFactory
Signature:
function createOAuthProviderFactory<TProfile>(options: {
authenticator: OAuthAuthenticator<unknown, TProfile>;
additionalScopes?: string[];
stateTransform?: OAuthStateTransform;
profileTransform?: ProfileTransform<OAuthAuthenticatorResult<TProfile>>;
signInResolver?: SignInResolver<OAuthAuthenticatorResult<TProfile>>;
signInResolverFactories?: {
[name in string]: SignInResolverFactory;
};
}): AuthProviderFactory;
Parameters
Parameter |
Type |
Description |
---|---|---|
options |
{ authenticator: OAuthAuthenticator<unknown, TProfile>; additionalScopes?: string[]; stateTransform?: OAuthStateTransform; profileTransform?: ProfileTransform<OAuthAuthenticatorResult<TProfile>>; signInResolver?: SignInResolver<OAuthAuthenticatorResult<TProfile>>; signInResolverFactories?: { [name in string]: SignInResolverFactory; }; } |