message: auth-backend: migrate aws-alb provider to use integration helper
diff: import {
  AuthHandler,
  - AuthProviderFactory,
  AuthProviderRouteHandlers,
  AuthResolverContext,
  AuthResponse,
  @@ -32,6 +31,7 @@ import { Profile as PassportProfile } from 'passport';
  import { makeProfileInfo } from '../../lib/passport';
  import { AuthenticationError } from '@backstage/errors';
  import { prepareBackstageIdentityResponse } from '../prepareBackstageIdentityResponse';
  +import { createAuthProviderIntegration } from '../createAuthProviderIntegration';
  export const ALB_JWT_HEADER = 'x-amzn-oidc-data';
  export const ALB_ACCESS_TOKEN_HEADER = 'x-amzn-oidc-accesstoken';
  @@ -229,7 +229,13 @@ export type AwsAlbProviderOptions = {
  };
  };
  -export const createAwsAlbProvider = (options?: {
  +/**
  + * Auth provider integration for AWS ALB auth
  + *
  + * @public
  + */
  +export const awsAlb = createAuthProviderIntegration({
  + create(options?: {
  /**
  * The profile transformation function used to verify and convert the auth response
  * into the profile that will be presented to the user.
  @@ -245,7 +251,7 @@ export const createAwsAlbProvider = (options?: {
  */
  resolver: SignInResolver<AwsAlbResult>;
  };
  -}): AuthProviderFactory => {
  + }) {
  return ({ config, resolverContext }) => {
  const region = config.getString('region');
  const issuer = config.getOptionalString('iss');
  @@ -270,4 +276,7 @@ export const createAwsAlbProvider = (options?: {
  resolverContext,
  });
  };
  -};
  + },
  +});
  +
  +export const createAwsAlbProvider = awsAlb.create;
  