ellaisys / aws-cognito

AWS Cognito package (with MFA Feature) using the AWS SDK for PHP/Laravel
https://ellaisys.github.io/aws-cognito/
MIT License
110 stars 43 forks source link

SSO enabled and no local user in DB, JSON returned and not redirected to home #86

Closed Glazebrook closed 4 months ago

Glazebrook commented 12 months ago

Describe the bug A clear and concise description of what the bug is.

When you have SSO enabled and the user you are trying to login with is not setup in the local database after login you get JSON returned instead of being redirected to home. If you then try and login again you get redirected to the home page. Below is what is retuned after intial login with no local user setup

{"email":"joe.bloggs@example.com","updated_at":"2023-11-21T16:37:51.000000Z","created_at":"2023-11-21T16:37:51.000000Z","id":67}

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.