Skip to content
This repository was archived by the owner on Jun 26, 2020. It is now read-only.
This repository was archived by the owner on Jun 26, 2020. It is now read-only.

Sending the authentication details to node js Serverless API #153

Open
@khaledshamat

Description

@khaledshamat

First of all, I would like to thank you for the great implementation, its very easy to play around with it and its readable, so I wanted to add some extra function to make a request to my secured Serverless API, which has the following configurations in the Serverless.yml file:
functions: get: # Defines an HTTP API endpoint that calls the main function in get.js # - path: url path is /orders/{id} # - method: GET request handler: src/orders/get.main events: - http: path: orders/{id} method: get cors: true authorizer: aws_iam

but every time the request is sent I get the following on my api cloud watch logs:

error: Object
message: "Missing Authentication Token"

Any advice please?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions