You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is not acceptable as all authorizer arns with the same ending (especially when using aliased functions) get the same name. This most likely breaks in any environment.
Additionally any explicitly specified name (authorizer: name: xxx) is just ignored. The expectation here would be, that, regardless of the arn or function the authorizer would be named accordingly in API Gateway.
Problem
When specifying a custom authorizer for an http endpoint in this way:
the generated authorizer is named auth.
After some experimentation I analyzed that the name will be unconditionally the last part of the arn.
This is not acceptable as all authorizer arns with the same ending (especially when using aliased functions) get the same name. This most likely breaks in any environment.
Expectation
Hint
The error happens in
validate.js: getAuthorizer(http, functionName)
which rewrites the given authorizer definition from the service.The text was updated successfully, but these errors were encountered: