7
7
700ghz2020-02-05 18:16:14
Amazon Web Services
700ghz, 2020-02-05 18:16:14

Auth + express.js + aws api gateway?

Hey! :)
* There is a backend on express.js. The backend has multiple endpoints (APIs)
* Architecture: AWS Cognito + AWS Lambda + AWS API Gateway

One of the endpoints should be admin only.

How to make such authorization?
a) API Gateway Lambda Authorizers
b) passport.js to our backend
c) AWS Signature
d) any ideas you have

Thanks :)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Shumov, 2020-02-05
@700ghz

There are only a few authorization methods through API Gateway:

  • API Gateway Lambda Authorizers
  • API Gateway Cognito Authorizers
  • API Gateway API KEYS
  • IAM policy
  • Any self-written solutions on the back

There are no others in nature.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question