auth-backend: deprecate more types that have been indirectly moved to auth-node

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2023-08-08 17:32:52 +02:00
parent e0cc114611
commit 961179c533
3 changed files with 21 additions and 10 deletions
+4 -1
View File
@@ -69,7 +69,10 @@ export type OAuthResponse = {
backstageIdentity?: BackstageSignInResult;
};
/** @public */
/**
* @public
* @deprecated Use `createOAuthRouteHandlers` from `@backstage/plugin-auth-node` instead
*/
export type OAuthProviderInfo = {
/**
* An access token issued for the signed in user.
+10 -2
View File
@@ -46,7 +46,10 @@ export type AuthResolverContext = _AuthResolverContext;
*/
export type CookieConfigurer = _CookieConfigurer;
/** @public */
/**
* @public
* @deprecated Use `createOAuthAuthenticator` from `@backstage/plugin-auth-node` instead
*/
export type OAuthStartResponse = {
/**
* URL to redirect to
@@ -105,6 +108,7 @@ export type SignInResolver<TAuthResult> = _SignInResolver<TAuthResult>;
* information.
*
* @public
* @deprecated Use `createOAuthRouteHandlers` from `@backstage/plugin-auth-node` instead
*/
export type AuthHandlerResult = { profile: ProfileInfo };
@@ -120,13 +124,17 @@ export type AuthHandlerResult = { profile: ProfileInfo };
* group of users.
*
* @public
* @deprecated Use `createOAuthRouteHandlers` from `@backstage/plugin-auth-node` instead
*/
export type AuthHandler<TAuthResult> = (
input: TAuthResult,
context: AuthResolverContext,
) => Promise<AuthHandlerResult>;
/** @public */
/**
* @public
* @deprecated Use `createOAuthRouteHandlers` from `@backstage/plugin-auth-node` instead
*/
export type StateEncoder = (
req: OAuthStartRequest,
) => Promise<{ encodedState: string }>;