Closed vvangestel closed 1 year ago
There is currently only one Auth class defined in serverless.py. This class is used by both the Api class as well as ApiEvent class, the expected properties of these objects does not however match.
Auth
serverless.py
Api
ApiEvent
See https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-property-api-apiauth.html, versus https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-property-function-apifunctionauth.html.
Another class should be created to provide support for the ApiFunctionAuth entity.
ApiFunctionAuth
There is currently only one
Auth
class defined inserverless.py
. This class is used by both theApi
class as well asApiEvent
class, the expected properties of these objects does not however match.See https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-property-api-apiauth.html, versus https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-property-function-apifunctionauth.html.
Another class should be created to provide support for the
ApiFunctionAuth
entity.