I have created the user pool and added new users to the user pool. My requirement is to use the default sign up/login page provided by cognito. So after retrieving the domain name for the hosted page it renders an empty page.
By simply entering the domain ends in several errors in the console. Appreciate if any one has identified the root cause for this.
Amazon Cognito can automatically verify email addresses or phone numbers. To do this verification, Amazon Cognito sends a verification code or a verification link. For email addresses, Amazon Cognito can send a code or a link in an email message. For phone numbers, Amazon Cognito sends a code in an SMS text message.
If you simply add a /login
to your existing URL you'll start to get useful error messages:
https://praedictio.auth.eu-west-1.amazoncognito.com/login
It's not documented very well, but your URL also requires some parameters:
client_id
- relates to the app for the identity provider.redirect_url
- should match your redirect url from the UserPool app settings.response_type
- token (or code).
https://praedictio.auth.eu-west-1.amazoncognito.com/login?response_type=code&client_id=(client_id)&redirect_uri=(encoded uri)
URL should be in the following format:
https://domain/login?response_type=code&client_id=client_id&redirect_uri=your_callback_url
Variables can be found in AWS > Amazon Cognito > User Pool > App Integration Tab
Domain:
Client ID of the App
Callback URL of the App
Pleaser refer Cognito document for more info.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With