auth-backend: make resolver required in all sign-in options
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -258,7 +258,7 @@ export type GithubProviderOptions = {
|
||||
/**
|
||||
* Maps an auth result to a Backstage identity for the user.
|
||||
*/
|
||||
resolver?: SignInResolver<GithubOAuthResult>;
|
||||
resolver: SignInResolver<GithubOAuthResult>;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
@@ -199,7 +199,7 @@ export type GitlabProviderOptions = {
|
||||
* the catalog for a single user entity that has a matching `microsoft.com/email` annotation.
|
||||
*/
|
||||
signIn?: {
|
||||
resolver?: SignInResolver<OAuthResult>;
|
||||
resolver: SignInResolver<OAuthResult>;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -215,7 +215,7 @@ export type GoogleProviderOptions = {
|
||||
/**
|
||||
* Maps an auth result to a Backstage identity for the user.
|
||||
*/
|
||||
resolver?: SignInResolver<OAuthResult>;
|
||||
resolver: SignInResolver<OAuthResult>;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -234,7 +234,7 @@ export type MicrosoftProviderOptions = {
|
||||
/**
|
||||
* Maps an auth result to a Backstage identity for the user.
|
||||
*/
|
||||
resolver?: SignInResolver<OAuthResult>;
|
||||
resolver: SignInResolver<OAuthResult>;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -202,7 +202,7 @@ export type OAuth2ProviderOptions = {
|
||||
authHandler?: AuthHandler<OAuthResult>;
|
||||
|
||||
signIn?: {
|
||||
resolver?: SignInResolver<OAuthResult>;
|
||||
resolver: SignInResolver<OAuthResult>;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -227,7 +227,7 @@ export type OidcProviderOptions = {
|
||||
authHandler?: AuthHandler<OidcAuthResult>;
|
||||
|
||||
signIn?: {
|
||||
resolver?: SignInResolver<OidcAuthResult>;
|
||||
resolver: SignInResolver<OidcAuthResult>;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -237,7 +237,7 @@ export type OktaProviderOptions = {
|
||||
/**
|
||||
* Maps an auth result to a Backstage identity for the user.
|
||||
*/
|
||||
resolver?: SignInResolver<OAuthResult>;
|
||||
resolver: SignInResolver<OAuthResult>;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -165,7 +165,7 @@ export type SamlProviderOptions = {
|
||||
/**
|
||||
* Maps an auth result to a Backstage identity for the user.
|
||||
*/
|
||||
resolver?: SignInResolver<SamlAuthResult>;
|
||||
resolver: SignInResolver<SamlAuthResult>;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user