From a7ef006e1572945d02ac92683e13b22c935b9815 Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Tue, 8 Oct 2024 10:12:27 +0200 Subject: [PATCH] update API reports Signed-off-by: Patrik Oldsberg --- .../report.api.md | 5 ++++- .../report.api.md | 10 ---------- plugins/auth-node/report.api.md | 17 +++++++---------- 3 files changed, 11 insertions(+), 21 deletions(-) diff --git a/plugins/auth-backend-module-oidc-provider/report.api.md b/plugins/auth-backend-module-oidc-provider/report.api.md index df717a9e1e..bee9a2fdd9 100644 --- a/plugins/auth-backend-module-oidc-provider/report.api.md +++ b/plugins/auth-backend-module-oidc-provider/report.api.md @@ -39,7 +39,10 @@ export type OidcAuthResult = { export namespace oidcSignInResolvers { const emailLocalPartMatchingUserEntityName: SignInResolverFactory< unknown, - unknown + | { + allowedDomains?: string[] | undefined; + } + | undefined >; const emailMatchingUserEntityProfileEmail: SignInResolverFactory< unknown, diff --git a/plugins/auth-backend-module-vmware-cloud-provider/report.api.md b/plugins/auth-backend-module-vmware-cloud-provider/report.api.md index c970b237a9..1bd10c7eae 100644 --- a/plugins/auth-backend-module-vmware-cloud-provider/report.api.md +++ b/plugins/auth-backend-module-vmware-cloud-provider/report.api.md @@ -5,10 +5,8 @@ ```ts import { BackendFeature } from '@backstage/backend-plugin-api'; import { OAuthAuthenticator } from '@backstage/plugin-auth-node'; -import { OAuthAuthenticatorResult } from '@backstage/plugin-auth-node'; import { PassportOAuthAuthenticatorHelper } from '@backstage/plugin-auth-node'; import { PassportProfile } from '@backstage/plugin-auth-node'; -import { SignInResolverFactory } from '@backstage/plugin-auth-node'; import { Strategy } from 'passport-oauth2'; // @public @@ -31,14 +29,6 @@ export interface VMwareCloudAuthenticatorContext { providerStrategy: Strategy; } -// @public -export namespace vmwareCloudSignInResolvers { - const profileEmailMatchingUserEntityEmail: SignInResolverFactory< - OAuthAuthenticatorResult, - unknown - >; -} - // @public (undocumented) export type VMwarePassportProfile = PassportProfile & { organizationId?: string; diff --git a/plugins/auth-node/report.api.md b/plugins/auth-node/report.api.md index 4cf9d5fd4b..5d3fce8f23 100644 --- a/plugins/auth-node/report.api.md +++ b/plugins/auth-node/report.api.md @@ -148,7 +148,10 @@ export namespace commonSignInResolvers { >; const emailLocalPartMatchingUserEntityName: SignInResolverFactory< unknown, - unknown + | { + allowedDomains?: string[] | undefined; + } + | undefined >; } @@ -178,10 +181,7 @@ export function createOAuthProviderFactory(options: { profileTransform?: ProfileTransform>; signInResolver?: SignInResolver>; signInResolverFactories?: { - [name in string]: SignInResolverFactory< - OAuthAuthenticatorResult, - unknown - >; + [name in string]: SignInResolverFactory; }; }): AuthProviderFactory; @@ -200,10 +200,7 @@ export function createProxyAuthProviderFactory(options: { authenticator: ProxyAuthenticator; profileTransform?: ProfileTransform; signInResolver?: SignInResolver; - signInResolverFactories?: Record< - string, - SignInResolverFactory - >; + signInResolverFactories?: Record; }): AuthProviderFactory; // @public (undocumented) @@ -648,7 +645,7 @@ export type SignInResolver = ( ) => Promise; // @public (undocumented) -export interface SignInResolverFactory { +export interface SignInResolverFactory { // (undocumented) ( ...options: undefined extends TOptions