diff --git a/.changeset/wild-cows-add.md b/.changeset/wild-cows-add.md new file mode 100644 index 0000000000..1170bc494d --- /dev/null +++ b/.changeset/wild-cows-add.md @@ -0,0 +1,5 @@ +--- +'@backstage/core-plugin-api': minor +--- + +Removed deprecated `OAuthRequestApi` types: `AuthProvider`, `AuthRequesterOptions`, `AuthRequester`, and `PendingAuthRequest`. diff --git a/packages/core-plugin-api/api-report.md b/packages/core-plugin-api/api-report.md index ab9f6621b9..e55004ba35 100644 --- a/packages/core-plugin-api/api-report.md +++ b/packages/core-plugin-api/api-report.md @@ -194,9 +194,6 @@ export const auth0AuthApiRef: ApiRef< OpenIdConnectApi & ProfileInfoApi & BackstageIdentityApi & SessionApi >; -// @public @deprecated (undocumented) -export type AuthProvider = Omit; - // @public export type AuthProviderInfo = { id: string; @@ -204,12 +201,6 @@ export type AuthProviderInfo = { icon: IconComponent; }; -// @public @deprecated (undocumented) -export type AuthRequester = OAuthRequester; - -// @public @deprecated (undocumented) -export type AuthRequesterOptions = OAuthRequesterOptions; - // @public export type AuthRequestOptions = { optional?: boolean; @@ -650,9 +641,6 @@ export type PathParams = { [name in ParamNames]: string; }; -// @public @deprecated (undocumented) -export type PendingAuthRequest = PendingOAuthRequest; - // @public export type PendingOAuthRequest = { provider: Omit & { diff --git a/packages/core-plugin-api/src/apis/definitions/OAuthRequestApi.ts b/packages/core-plugin-api/src/apis/definitions/OAuthRequestApi.ts index 5b8dab29f7..ccca2c50e3 100644 --- a/packages/core-plugin-api/src/apis/definitions/OAuthRequestApi.ts +++ b/packages/core-plugin-api/src/apis/definitions/OAuthRequestApi.ts @@ -18,12 +18,6 @@ import { Observable } from '@backstage/types'; import { ApiRef, createApiRef } from '../system'; import { AuthProviderInfo } from './auth'; -/** - * @public - * @deprecated Use AuthProviderInfo instead - */ -export type AuthProvider = Omit; - /** * Describes how to handle auth requests. Both how to show them to the user, and what to do when * the user accesses the auth request. @@ -45,12 +39,6 @@ export type OAuthRequesterOptions = { onAuthRequest(scopes: Set): Promise; }; -/** - * @public - * @deprecated Use OAuthRequesterOptions instead - */ -export type AuthRequesterOptions = OAuthRequesterOptions; - /** * Function used to trigger new auth requests for a set of scopes. * @@ -69,12 +57,6 @@ export type OAuthRequester = ( scopes: Set, ) => Promise; -/** - * @public - * @deprecated Use OAuthRequester instead - */ -export type AuthRequester = OAuthRequester; - /** * An pending auth request for a single auth provider. The request will remain in this pending * state until either reject() or trigger() is called. @@ -107,12 +89,6 @@ export type PendingOAuthRequest = { trigger(): Promise; }; -/** - * @public - * @deprecated Use PendingOAuthRequest instead - */ -export type PendingAuthRequest = PendingOAuthRequest; - /** * Provides helpers for implemented OAuth login flows within Backstage. *