Giter Site home page Giter Site logo

Comments (3)

adamwathan avatar adamwathan commented on August 18, 2024

Yikes this shouldn't be happening, it should be creating a user if it detects the user has never logged in before. Are you able to reproduce in a sample project that you can upload?

from eloquent-oauth-l5.

syphernl avatar syphernl commented on August 18, 2024

Unfortunately that'll be a tad difficult since both the oAuth server and client application are on internal servers and rely on internal services to function.

It's a bit odd since it does work fine on our (internal) QA server but when I try it in my Vagrant box I'm getting this error. The codebase is exactly the same though.

from eloquent-oauth-l5.

adamwathan avatar adamwathan commented on August 18, 2024

Hm :/ Without being able to reproduce here I'm not sure what to do. Somehow, this userExists check must be coming back as true, but there's no user in the users table:

https://github.com/adamwathan/eloquent-oauth/blob/master/src/Authenticator.php#L28-L31

Can you manually inspect the oauth_identities table and see if there is an entry there that is pointing to a user_id that doesn't actually exist in your users table? Maybe a user was deleted without deleting their corresponding OAuth identity, and trying to log them in again is causing this error?

If that's the case I'll have to think if I should be trying to work around that in this package. Maybe should use a real foreign key constraint in the oauth_identities migration and delete on cascade.

from eloquent-oauth-l5.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.