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 回答
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
已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则