sls-helper-plugin-janis
Advanced tools
Comparing version 1.2.2 to 1.2.3
@@ -9,2 +9,6 @@ # Changelog | ||
## [1.2.3] - 2019-12-27 | ||
### Fixed | ||
- Authorizers fixed to match the correct function name | ||
## [1.2.2] - 2019-12-26 | ||
@@ -11,0 +15,0 @@ ### Fixed |
@@ -43,4 +43,8 @@ 'use strict'; | ||
const authorizersNameToFunctionMapping = { | ||
ServiceNoClientAuthorizer: 'ServiceAuthorizer' | ||
}; | ||
const authorizerBuilder = (name, headers) => ({ | ||
arn: `arn:aws:lambda:us-east-1:026813942644:function:JanisIdService-\${self:custom.stage}-${name}`, | ||
arn: `arn:aws:lambda:us-east-1:026813942644:function:JanisIdService-\${self:custom.stage}-${authorizersNameToFunctionMapping[name] || name}`, | ||
resultTtlInSeconds: 300, | ||
@@ -47,0 +51,0 @@ identitySource: headers.map(header => `method.request.header.${header}`).join(','), |
{ | ||
"name": "sls-helper-plugin-janis", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"description": "A Serverless Helper plugin to add custom helpers for JANIS Commerce", | ||
@@ -5,0 +5,0 @@ "main": "lib/plugin.js", |
26551
644