cognito - pure api authentication

1

Hello, I would like to use cognito as my user management solution, but my application won't have a front-end, just an api (using amazon api-gateway), is it possible to authenticate endpoints without manually grabbing key from amazon hosted login front ? my use case should work like that : I manually create user in cognito -> user logs in through basic authentication post method -> user receives api token that he can use for all api calls he is authorised for. Is such use case possible ?

1 Answer
1

You can control access to a REST API using Amazon Cognito user pools as authorizer is one of the ways controlling and managing access in API Gateway.

Depending in your use-case, I recommend take a look to use API keys for usage plans, since you'll have a more control for usage.

Each method has its trade-offs and affinity with some use0cases, but the ths first link should give you the path straightforward for your question.

profile pictureAWS
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions