Base solution for your next web application
Open Closed

OpenId with AWS Cognito User Pool problem #7671


User avatar
0
Hellonote created

Hi,

I partially got the OpenId with AWS Cognito User Pool (I think). I am able to show the OpenIdConnect button, redirect to AWS Cognito login and signup page. But I noticed some problems:

1. When I sign-up a new user, it creates a user record in Cognito User Pool but it doesn't create a record in Abp tables. 2. Even if I'm logged-in to Cognito, it doesn't log me into AspnetZero.

Questions:

1. Am I doing something wrong here? Did I miss anything? 2. Does AspnetZero support AWS Cognito User Pool as OpenId?

Here are the screenshots of the changes I made with my demo app that would hopefully help understand the problem.

OpenId in appsettings.json.

Modified login.service.ts to match with Cognito User Pool app client settings

Login page

Clicking the OpenIdConnect button redirect to Cognito login page.

After successfully logging in to Cognito, it redirects to this URL.

The error I've got in the console after redirecting to the /account/login page.

I had to modify the login.component.ts because the redirect URL doesn't contain hash parameters.

Thanks.


3 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Could you share the line 334 in your login.service.ts ?

    Thanks

  • User Avatar
    0
    Hellonote created

    Hi ismcagdas,

    Here you go:

    Thanks

  • User Avatar
    0
    ismcagdas created
    Support Team

    This has been fixed via remote support.