Skip to content
This repository has been archived by the owner on Feb 24, 2018. It is now read-only.

Can I use my own login page in sample web page demonstrates? #669

Open
alpuriku opened this issue Feb 2, 2018 · 0 comments
Open

Can I use my own login page in sample web page demonstrates? #669

alpuriku opened this issue Feb 2, 2018 · 0 comments

Comments

@alpuriku
Copy link

alpuriku commented Feb 2, 2018

I know my question is a bit weird. In fact it is related to amazon-cognito-auth-js of AWS.
https://github.com/aws/amazon-cognito-auth-js
I have 2 domains, foo.com and bar.com.

I built my own login page with amazon-cognito-identity-js on domain foo.com, but I want the user from bar.com also authenticate through foo.com login page as well. Is it possible with amazon-cognito-identity-js provided functions?

In the sample demonstrates web page of amazon-cognito-auth-js, when I click the Sign in button, it redirects to the hosted ui login page by AWS to perform the login action and return to the callback url with #id_token.
In the callback page, I think that it will perform the authentication by using auth.parseCognitoWebResponse(curUrl) with the #id_token provided in url.

I wonder if it is the appropriate way to perform multiple domain authentication or any other better solution.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant