Skip to main content

OAuthRequesterOptions

Home > @backstage/core-plugin-api > OAuthRequesterOptions

Describes how to handle auth requests. Both how to show them to the user, and what to do when the user accesses the auth request.

Signature:

export type OAuthRequesterOptions<TOAuthResponse> = {
provider: AuthProviderInfo;
onAuthRequest(scopes: Set<string>): Promise<TOAuthResponse>;
};

References: AuthProviderInfo