1 Answer
- Newest
- Most votes
- Most comments
0
Hi,
The following Knowledge Center post describes step by step how to configure Google as a federated identity provider (IdP) in an Amazon Cognito user pool.
Having said that, if you want authenticate an end user from the frontend against a third party (Google here), you may take a look at Oauth2 Authorization code grant flow, since the credentials should not go through your backend server.
Relevant content
- asked 10 months ago
- asked 3 months ago
- Accepted Answerasked a year ago
- asked 2 years ago
- AWS OFFICIALUpdated 9 months ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated 4 months ago
- AWS OFFICIALUpdated 10 months ago
I also need Access and Refresh Token! from cognito in my backend node js
the link you provided is using hosted ui and I want my custom frontend (next js)
I've used @react-oauth/google in my frontend next js which return me a idToken I'm sending that to backend (node js express) where I want to use this token to auth or add to aws cognito. how can I do this?
Sorry, I may not have understood you correctly. Could you give me more information about your use case? Are you trying to log in a user or a machine?
The Oauth2 Authorization code grant flow will provide you an access, id and refresh token, but Cognito Hosted UI is required.
does my user needs to go to the hosted UI to sign in through Google or other social providers.