aws cognito user pool domain - Invalid_Request

10,331

Solution 1

It works for me with following User Pool settings.

App integration
    App client settings
        Enabled Identity Providers
            ☑ Facebook  ☑ Cognito User Pool
        Callback URL(s)
            https://google.com
        OAuth 2.0
            Allowed OAuth Flows
            ☑ Authorization code grant  ☐ Implicit grant  ☐ Client credentials
        Allowed OAuth Scopes
            ☐ phone  ☐ email  ☑ openid  ☐ aws.cognito.signin.user.admin  ☐ profile

Solution 2

You're doing everything correct from what you've describe, but you should check the following,

  • Have you added https://google.com in App Client Setting as Callback URL?

  • Have you checked your Identity Provider in Enabled Identity Providers?

  • In Allowed OAuth Flows, you must have checked "Authorization Code Grant".

Solution 3

In my case it was a required attribute (Name) that was set to Mutable: False.

After login user was prompted to reset their temporary password and set the name. On form submission, An error was encountered with the requested page error appeared.

Making the Name attribute editable fixed the issue.

Solution 4

Enable Authorization code grant under Allowed OAuth Flows in the AppClientSettngs tab

Change the redirect_uri like

https://myDomain.auth.us-east-1.amazoncognito.com/login?response_type=code&client_id=fkjfkasjfkasjfdweinfskfsfsfnk&redirect_uri=https://myDomain.auth.us-east-1.amazoncognito.com

This worked for me

Share:
10,331
user3600073
Author by

user3600073

Updated on June 13, 2022

Comments