-
Cognito User pool 에 자격 증명 공급자로 인증, token 얻기dev/aws 2019. 12. 5. 18:58
https://github.com/aws-amplify/amplify-js/issues/399
currentSession() returns no current user? · Issue #399 · aws-amplify/amplify-js
I'm trying to test with the following code in a component that is wrapped by the withAuthenticator() HOC. Federated login works. Once logged in, I get the "No current user" error when...
github.com
cognito 사용시 유저풀이 아닌 자격 증명 공급자(페이스북, 구글)를 통해 인증을 한 경우 이후 api gateway 에 설정한 승인 방식이 cognito 사용자 풀 인증일 경우 사용할 token 을 가져올 수 없음.
현재 진행중.
cognito 인증을 통해 얻은 token 으로 api gateway 인증을 하여 rest api 를 사용중인 환경.
웹은 amplify, react 로 내장된 로그인 기능에 로그인 페이지 커스텀.
facebook 등 소셜 로그인 기능을 추가하기로 하여 일단 웹 페이지 작업.
https://docs.aws.amazon.com/ko_kr/cognito/latest/developerguide/cognito-user-pools-social-idp.html
사용자 풀에 소셜 자격 증명 공급자 추가 - Amazon Cognito
사용자 풀에 소셜 자격 증명 공급자 추가 웹 및 모바일 앱 사용자들이 Facebook, Google, Amazon 같은 소셜 자격 증명 공급자(IdP)를 통해 로그인할 수 있습니다. 내장된 호스트 웹 UI를 사용하여 Amazon Cognito가 모든 자격 증명 공급자의 모든 인증 사용자에 대한 토큰 처리 및 관리를 제공하기 때문에 사용자의 백엔드 시스템을 한 세트의 사용자 풀 토큰에서 표준화할 수 있습니다. AWS CLI 또는 Amazon Cognito
docs.aws.amazon.com
Integrating social media to your app with AWS Cognito
In this post we will talk about Amazon Web Service Cognito. After reading this post you will have an idea of how to integrate it to your…
medium.com
호스팅 UI 사용하여 자격 증명 공급자 로그인/가입/토큰 조회.
진행중.