update API reports
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -39,7 +39,10 @@ export type OidcAuthResult = {
|
||||
export namespace oidcSignInResolvers {
|
||||
const emailLocalPartMatchingUserEntityName: SignInResolverFactory<
|
||||
unknown,
|
||||
unknown
|
||||
| {
|
||||
allowedDomains?: string[] | undefined;
|
||||
}
|
||||
| undefined
|
||||
>;
|
||||
const emailMatchingUserEntityProfileEmail: SignInResolverFactory<
|
||||
unknown,
|
||||
|
||||
@@ -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<PassportProfile>,
|
||||
unknown
|
||||
>;
|
||||
}
|
||||
|
||||
// @public (undocumented)
|
||||
export type VMwarePassportProfile = PassportProfile & {
|
||||
organizationId?: string;
|
||||
|
||||
@@ -148,7 +148,10 @@ export namespace commonSignInResolvers {
|
||||
>;
|
||||
const emailLocalPartMatchingUserEntityName: SignInResolverFactory<
|
||||
unknown,
|
||||
unknown
|
||||
| {
|
||||
allowedDomains?: string[] | undefined;
|
||||
}
|
||||
| undefined
|
||||
>;
|
||||
}
|
||||
|
||||
@@ -178,10 +181,7 @@ export function createOAuthProviderFactory<TProfile>(options: {
|
||||
profileTransform?: ProfileTransform<OAuthAuthenticatorResult<TProfile>>;
|
||||
signInResolver?: SignInResolver<OAuthAuthenticatorResult<TProfile>>;
|
||||
signInResolverFactories?: {
|
||||
[name in string]: SignInResolverFactory<
|
||||
OAuthAuthenticatorResult<TProfile>,
|
||||
unknown
|
||||
>;
|
||||
[name in string]: SignInResolverFactory;
|
||||
};
|
||||
}): AuthProviderFactory;
|
||||
|
||||
@@ -200,10 +200,7 @@ export function createProxyAuthProviderFactory<TResult>(options: {
|
||||
authenticator: ProxyAuthenticator<unknown, TResult, unknown>;
|
||||
profileTransform?: ProfileTransform<TResult>;
|
||||
signInResolver?: SignInResolver<TResult>;
|
||||
signInResolverFactories?: Record<
|
||||
string,
|
||||
SignInResolverFactory<TResult, unknown>
|
||||
>;
|
||||
signInResolverFactories?: Record<string, SignInResolverFactory>;
|
||||
}): AuthProviderFactory;
|
||||
|
||||
// @public (undocumented)
|
||||
@@ -648,7 +645,7 @@ export type SignInResolver<TAuthResult> = (
|
||||
) => Promise<BackstageSignInResult>;
|
||||
|
||||
// @public (undocumented)
|
||||
export interface SignInResolverFactory<TAuthResult, TOptions> {
|
||||
export interface SignInResolverFactory<TAuthResult = any, TOptions = any> {
|
||||
// (undocumented)
|
||||
(
|
||||
...options: undefined extends TOptions
|
||||
|
||||
Reference in New Issue
Block a user