From ef2eb3b9ac7d1c88a13e67e6230b717b8b991303 Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Sat, 21 Aug 2021 11:31:25 +0200 Subject: [PATCH] auth-backend: fix sign-in provider docs Signed-off-by: Patrik Oldsberg --- plugins/auth-backend/src/providers/github/provider.ts | 9 +++------ plugins/auth-backend/src/providers/google/provider.ts | 9 +++------ plugins/auth-backend/src/providers/microsoft/provider.ts | 9 +++------ plugins/auth-backend/src/providers/okta/provider.ts | 9 +++------ 4 files changed, 12 insertions(+), 24 deletions(-) diff --git a/plugins/auth-backend/src/providers/github/provider.ts b/plugins/auth-backend/src/providers/github/provider.ts index b261ea7be9..b6b198b644 100644 --- a/plugins/auth-backend/src/providers/github/provider.ts +++ b/plugins/auth-backend/src/providers/github/provider.ts @@ -198,13 +198,10 @@ export type GithubProviderOptions = { /** * Configure sign-in for this provider, without it the provider can not be used to sign users in. */ - /** - * Maps an auth result to a Backstage identity for the user. - * - * Set to `'email'` to use the default email-based sign in resolver, which will search - * the catalog for a single user entity that has a matching `google.com/email` annotation. - */ signIn?: { + /** + * Maps an auth result to a Backstage identity for the user. + */ resolver?: SignInResolver; }; }; diff --git a/plugins/auth-backend/src/providers/google/provider.ts b/plugins/auth-backend/src/providers/google/provider.ts index e934a94c48..d85fc2de2d 100644 --- a/plugins/auth-backend/src/providers/google/provider.ts +++ b/plugins/auth-backend/src/providers/google/provider.ts @@ -240,13 +240,10 @@ export type GoogleProviderOptions = { /** * Configure sign-in for this provider, without it the provider can not be used to sign users in. */ - /** - * Maps an auth result to a Backstage identity for the user. - * - * Set to `'email'` to use the default email-based sign in resolver, which will search - * the catalog for a single user entity that has a matching `google.com/email` annotation. - */ signIn?: { + /** + * Maps an auth result to a Backstage identity for the user. + */ resolver?: SignInResolver; }; }; diff --git a/plugins/auth-backend/src/providers/microsoft/provider.ts b/plugins/auth-backend/src/providers/microsoft/provider.ts index 26009474be..2dc259fe74 100644 --- a/plugins/auth-backend/src/providers/microsoft/provider.ts +++ b/plugins/auth-backend/src/providers/microsoft/provider.ts @@ -247,13 +247,10 @@ export type MicrosoftProviderOptions = { /** * Configure sign-in for this provider, without it the provider can not be used to sign users in. */ - /** - * Maps an auth result to a Backstage identity for the user. - * - * Set to `'email'` to use the default email-based sign in resolver, which will search - * the catalog for a single user entity that has a matching `microsoft.com/email` annotation. - */ signIn?: { + /** + * Maps an auth result to a Backstage identity for the user. + */ resolver?: SignInResolver; }; }; diff --git a/plugins/auth-backend/src/providers/okta/provider.ts b/plugins/auth-backend/src/providers/okta/provider.ts index 24ee14becc..44e26bb7fe 100644 --- a/plugins/auth-backend/src/providers/okta/provider.ts +++ b/plugins/auth-backend/src/providers/okta/provider.ts @@ -250,13 +250,10 @@ export type OktaProviderOptions = { /** * Configure sign-in for this provider, without it the provider can not be used to sign users in. */ - /** - * Maps an auth result to a Backstage identity for the user. - * - * Set to `'email'` to use the default email-based sign in resolver, which will search - * the catalog for a single user entity that has a matching `okta.com/email` annotation. - */ signIn?: { + /** + * Maps an auth result to a Backstage identity for the user. + */ resolver?: SignInResolver; }; };