diff --git a/plugins/auth-backend-module-oauth2-proxy-provider/src/authenticator.ts b/plugins/auth-backend-module-oauth2-proxy-provider/src/authenticator.ts index 3b94b6d404..de12eb4d4c 100644 --- a/plugins/auth-backend-module-oauth2-proxy-provider/src/authenticator.ts +++ b/plugins/auth-backend-module-oauth2-proxy-provider/src/authenticator.ts @@ -37,6 +37,7 @@ export const oauth2ProxyAuthenticator = createProxyAuthenticator({ }, }; }, + async initialize() {}, async authenticate({ req }) { try { const authHeader = req.header(OAUTH2_PROXY_JWT_HEADER); diff --git a/plugins/auth-node/src/proxy/types.ts b/plugins/auth-node/src/proxy/types.ts index 9c1bc78dfd..0f52feaac4 100644 --- a/plugins/auth-node/src/proxy/types.ts +++ b/plugins/auth-node/src/proxy/types.ts @@ -21,7 +21,7 @@ import { ProfileTransform } from '../types'; /** @public */ export interface ProxyAuthenticator { defaultProfileTransform: ProfileTransform; - initialize?(ctx: { config: Config }): TContext; + initialize(ctx: { config: Config }): TContext; authenticate( options: { req: Request }, ctx: TContext,