Skip to content

Authorizer overrides at function level not working as expected when using swagger and global default authorizer config #984

@sgates

Description

@sgates

I've been working with @keetonian via the slack channel on this issue, I'll defer to him for more details and findings.

In a nutshell:
Swagger is used to define API details. It's included in template with

Location: !Sub 's3://${DeployBucket}/${BranchName}/swagger-${Version}.yaml'

There is a global auth config at the API level with a default authorizer (a lambda authorizer). I wish to make specific get requests defined in the sam template have no authorizer, so I added:

Auth:
  Authorizer: NONE

This doesn't seem to stick (it's ignored when deployed) and the DefaultAuthorizer gets added to the resource anyway. Keeton has reproduced the issue, but hasn't nailed down a cause yet. I'm reporting here for tracking and for others should they hit a similar issue. Thanks!

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions