How can I implement 'login with aws' for a web application?

0

We are building a web application that asks users to login using their aws account and uses the auth token generated to access specific resources from the user's aws account.

This is similar to the support in Azure and GCP: https://learn.microsoft.com/en-us/azure/active-directory/develop/quickstart-register-app https://developers.google.com/identity/sign-in/web/sign-in

What is the correct way of implementing this for aws?

Investigation done so far:

  • Aws Cognito - We explored aws cognito and it seems like it is a solution to manage our own user pool. Users will need to sign up and signed-in users can sign in. We are looking to access the aws user pool, instead of managing our own user pool.
  • Aws STS - STS has APIs to generate temp credentials for an IAM role, but the STS SDK itself needs to be initialized using our aws credentials. So this scenario is not feasible for web applications.

We are looking for a way which uses the oAuth2 protocol to authenticate the user and return an access token to the web application.

1개 답변
0

AWS has the ability to connect OIDC identity providers. Check out this link below: https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-oidc-idp.html

You can create and manage the user pools through the instructions below. https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools.html

AWS
답변함 일 년 전

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

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

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

관련 콘텐츠