fix: get key function.
Signed-off-by: Navdeep Gupta <navdeep.gupta@philips.com>
This commit is contained in:
@@ -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;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -33,7 +33,7 @@ export const authModuleAwsAlbProvider = createBackendModule({
|
||||
},
|
||||
async init({ providers }) {
|
||||
providers.registerProvider({
|
||||
providerId: 'awsAlb',
|
||||
providerId: 'awsalb',
|
||||
factory: createProxyAuthProviderFactory({
|
||||
authenticator: awsAlbAuthenticator,
|
||||
signInResolverFactories: {
|
||||
|
||||
Reference in New Issue
Block a user