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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠