Brinsley
10/20/2021, 6:52 PMApi
with a default authorizer set up, but when I change one of the routes to use the NONE
auth type it doesn't apply. Any ideas? Looked through the sst source for the construct and it looks like it should be picking up my change, but it just doesn't:
new Api(this, "Api", {
httpApi: {
apiName: `${this.stage}-${scope.name}-auth`
},
routes: {
"POST /access": {
handler: "src/auth/test.handler",
authorizationType: ApiAuthorizationType.NONE,
},
},
defaultAuthorizationType: ApiAuthorizationType.JWT,
defaultAuthorizer: new HttpUserPoolAuthorizer({
userPool: this.cognito.cognitoUserPool!,
userPoolClient: this.cognito.cognitoUserPoolClient!,
})
Terminak:
Rebuilding infrastructure...
No infrastructure changes detected
I can actually change the auth type to anything and it doesn't pick it up. Any ideas?Frank
routes: {
"POST /access": {
handler: "src/auth/test.handler",
authorizationType: ApiAuthorizationType.NONE,
},
},
Try
routes: {
"POST /access": {
function: "src/auth/test.handler",
authorizationType: ApiAuthorizationType.NONE,
},
},
Frank
handler
to function
Brinsley
10/20/2021, 6:54 PMBrinsley
10/20/2021, 6:55 PMBrinsley
10/20/2021, 6:55 PMBrinsley
10/20/2021, 6:56 PM