Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V1.3.0 NoLocalUserException when trying to login. #108

Open
RubinNederlof opened this issue Aug 26, 2024 · 1 comment
Open

V1.3.0 NoLocalUserException when trying to login. #108

RubinNederlof opened this issue Aug 26, 2024 · 1 comment

Comments

@RubinNederlof
Copy link

Describe the bug
When using version V1.2.5 everything worked perfectly. After running composer update and switching to version V1.3.0 I get the NoLocalUserException from 'src/Guards/Traits/BaseCognitoGuard.php:244' while the user does exist in AWS Cognito and the local user table.

To Reproduce
Steps to reproduce the behaviour:

  1. Follow the readme to install the package
  2. Create the login controller according to the screenshot included.
  3. Register and activate a user in AWS Cognito and the local database.
  4. Call the API
  5. See the error

Expected behaviour
Get the user to be logged in.

Screenshots
image
image

Desktop (please complete the following information):

  • OS: Ubuntu 24.04
  • Browser: Chrome 126.0.6478.55 and Firefox 129.0.2

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
'src/Guards/Traits/BaseCognitoGuard.php:223': The '$credentials' param contains a collection of a 'sub' key with a token as a value. The line '$this->getRemoteUserData($this->claim->getUsername());' (R231) returns an error that the user doesn't exist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@RubinNederlof and others