Skip to content
This repository was 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

@alpuriku

Description

@alpuriku

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions