auth-backend: make resolver required in all sign-in options

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2022-03-17 15:47:47 +01:00
parent 581ce7f4d4
commit e13f387ed0
8 changed files with 8 additions and 8 deletions
@@ -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>;
};
};