auth-backend: deprecate OAuthAdapter

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2023-07-29 11:35:24 +02:00
parent 987637d75a
commit afdfeb7974
@@ -50,7 +50,10 @@ import { prepareBackstageIdentityResponse } from '../../providers/prepareBacksta
export const THOUSAND_DAYS_MS = 1000 * 24 * 60 * 60 * 1000;
export const TEN_MINUTES_MS = 600 * 1000;
/** @public */
/**
* @public
* @deprecated
*/
export type OAuthAdapterOptions = {
providerId: string;
persistScopes?: boolean;
@@ -61,7 +64,10 @@ export type OAuthAdapterOptions = {
callbackUrl: string;
};
/** @public */
/**
* @public
* @deprecated Use `createOAuthRouteHandlers` from `@backstage/plugin-auth-node` instead
*/
export class OAuthAdapter implements AuthProviderRouteHandlers {
static fromConfig(
config: AuthProviderConfig,