Giter VIP home page Giter VIP logo

Comments (8)

danjellesma avatar danjellesma commented on July 30, 2024

Receiving the same error with new installs of Laravel. Simply declaring the class abstract didn't help

from ldap-auth.

syphernl avatar syphernl commented on July 30, 2024

I have worked around this problem by putting the missing functions (with arguments) in LdapAuthUserProvider.php. These functions are most likely useless, or should they actually be used (and thus requiring a users table to be used in the DB)

from ldap-auth.

jasonspick avatar jasonspick commented on July 30, 2024

@syphernl Can you show me an example of what that looks like?

from ldap-auth.

syphernl avatar syphernl commented on July 30, 2024

I don't have access to the source from here but IIRC it was simply adding this to the class defined in LdapAuthUserProvider.php:

public function retrieveByToken($identifier, $token) {}
public function updateRememberToken($user, $token) {}

It works fine with this, not sure what I'm missing out on but I needed to fix my app pronto

from ldap-auth.

ccovey avatar ccovey commented on July 30, 2024

this is now fixed...the token stuff I just return because its not really needed for these purposes.

from ldap-auth.

syphernl avatar syphernl commented on July 30, 2024

Unfortunately the 1.1.5 release does not fix this issue as it is now missing getRememberToken, setRememberToken and getRememberTokenName. Also, a typo "extend" rather than "extends".

from ldap-auth.

robstel avatar robstel commented on July 30, 2024

syphernl's fix works for me:

revert to v1.1.4 in composer.json:

require {
    "ccovey/ldap-auth": "1.1.4",
}

add the following to LdapAuthUserProvider.php

public function retrieveByToken($identifier, $token) {}
public function updateRememberToken(Auth\UserInterface $user, $token) {}

The 1.1.5 changes break my app horribly, even after fixing the missing methods & typo in LdapUser.php .

I'm using a database Model, and 1.1.5 tries to find the user with

$model = $this->createModel()->newQuery()->find($identifier);

where it was previously

$model = $this->createModel()->newQuery()->where($this->getUsernameField(), $identifier)->first();

As $identifier is the username, not an ID, this fails.

from ldap-auth.

aaronmaturen avatar aaronmaturen commented on July 30, 2024

The getRememberToken, setRememberToken, getRememberTokenName got added in 4.1.28, I've added a pull request to fix that.

from ldap-auth.

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.