diff --git a/plugins/auth-backend-module-aws-alb-provider/src/helpers.ts b/plugins/auth-backend-module-aws-alb-provider/src/helpers.ts index cdc19174ea..f19cfad353 100644 --- a/plugins/auth-backend-module-aws-alb-provider/src/helpers.ts +++ b/plugins/auth-backend-module-aws-alb-provider/src/helpers.ts @@ -82,7 +82,7 @@ export const provisionKeyCache = (region: string, keyCache: NodeCache) => { )}.amazonaws.com/${encodeURIComponent(header.kid)}`, ).then(response => response.text()); const keyValue = crypto.createPublicKey(keyText); - keyCache.set(header.kid, keyValue.export()); + keyCache.set(header.kid, keyValue.export({ format: 'pem', type: 'spki' })); return keyValue; }; }; diff --git a/plugins/auth-backend-module-aws-alb-provider/src/module.ts b/plugins/auth-backend-module-aws-alb-provider/src/module.ts index 14e35252af..65289bce10 100644 --- a/plugins/auth-backend-module-aws-alb-provider/src/module.ts +++ b/plugins/auth-backend-module-aws-alb-provider/src/module.ts @@ -33,7 +33,7 @@ export const authModuleAwsAlbProvider = createBackendModule({ }, async init({ providers }) { providers.registerProvider({ - providerId: 'awsAlb', + providerId: 'awsalb', factory: createProxyAuthProviderFactory({ authenticator: awsAlbAuthenticator, signInResolverFactories: {