We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom authorizers return 403 error even after enabling simple response ( "enableSimpleResponses: true")
Current Behavior
{"statusCode":403,"error":"Forbidden","message":"No principalId set on the Response"}
Sample Code
service: my-service plugins: - serverless-webpack - serverless-offline - serverless-dynamodb-local - serverless-api-compression - provider: runtime: nodejs14.x stage: dev authorizers: firebaseAuth: type: request identitySource: $request.header.Authorization resultTtlInSeconds: 300 enableSimpleResponses: true payloadVersion: "2.0" functionName: firebaseAuth functions: hello: events: - http: method: get path: hello handler: handler.hello
'use strict' const { stringify } = JSON export const authorize = async function (event: any): Promise<APIGatewaySimpleAuthorizerResult> { return { isAuthorized: true }; }
Expected behavior/code
Request should not fail with 403 error
Environment
serverless
serverless-offline
node.js
OS
The text was updated successfully, but these errors were encountered:
It's related to #1475
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Bug Report
Custom authorizers return 403 error even after enabling simple response ( "enableSimpleResponses: true")
Current Behavior
Sample Code
Expected behavior/code
Request should not fail with 403 error
Environment
serverless
version: [e.g. v3.2.0]serverless-offline
version: [e.g. v8.5.0]node.js
version: [e.g. v17.5.0]OS
: [ darwin, node 17.5.0, framework 3.2.1 (local) 3.2.0v (global), plugin 6.1.0, SDK 4.3.1]The text was updated successfully, but these errors were encountered: