amazon-archives / amazon-cognito-auth-js

The Amazon Cognito Auth SDK for JavaScript simplifies adding sign-up, sign-in with user profile functionality to web apps.
Apache License 2.0
423 stars 232 forks source link

Permit identity provider (name or id) in CognitoAuth.getCognitoConstants() #9

Closed Nogbit closed 7 years ago

Nogbit commented 7 years ago

Are you up for pull requests? I would like to specify an Identity name or id in the getCognitoConstants() method and have the user skip the identity provider selection process (cognito hosted UI) and instead make sure the /authorize endpoint routes directly to a specified identity_provider login as detailed in the authorization endpoin docs.

It would probably be one line of code really in that method as well as the method that builds the FQDN.

yuntuowang commented 7 years ago

Thanks for the comment. You can go ahead to send a pull request. We will later review your added code and decide to merge or not.

rafalwrzeszcz commented 7 years ago

22 should already solve this.

Nogbit commented 7 years ago

Thanks!