Giter Site home page Giter Site logo

Comments (8)

adamwathan avatar adamwathan commented on July 19, 2024

What is it that you are trying to do? The package is meant specifically for integration with Eloquent and Laravel's Auth system, and the OAuthIdentity class is essentially private to the package and doesn't need to be used by the end user.

from eloquent-oauth-l5.

mvladk avatar mvladk commented on July 19, 2024

My project works with Jenssegers\Mongodb\Model and Mongodb connection without Mysql DB
Currently it works fine with Laravel's Auth system. And fail on class OAuthIdentity extends Eloquent

from eloquent-oauth-l5.

adamwathan avatar adamwathan commented on July 19, 2024

Gotcha! Lemme look into it, see if I can figure out a simple solution.

from eloquent-oauth-l5.

adamwathan avatar adamwathan commented on July 19, 2024

Looks like the easiest solution without changing anything would be to write your own IdentityStore implementation that looks things up in Mongo, and bootstrap everything in your own service provider instead of using the one that ships with the package.

There's no way to allow changing the base class at runtime so writing your own IdentityStory is really the only option regardless. I will see what I can do about making it easier to override that without writing your own service provider though. Likely will stick an interface in front of it and resolve it out of the IOC in my own service provider, so you can override the interface binding after the fact and use your own implementation. That sound like it would work for you?

from eloquent-oauth-l5.

mvladk avatar mvladk commented on July 19, 2024

Fine.
That what I thought, Just a wanted to be sure and notify you.
Thank you.

from eloquent-oauth-l5.

adamwathan avatar adamwathan commented on July 19, 2024

https://github.com/adamwathan/eloquent-oauth-l5/releases/tag/v0.2.0

Should be able to swap out the IdentityStore now by registering your own IOC binding for it.

from eloquent-oauth-l5.

mvladk avatar mvladk commented on July 19, 2024

Woha! It was fast :)

from eloquent-oauth-l5.

adamwathan avatar adamwathan commented on July 19, 2024

If I didn't do it right away it'd take me months :)

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.