Comments (8)
Receiving the same error with new installs of Laravel. Simply declaring the class abstract didn't help
from ldap-auth.
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.
@syphernl Can you show me an example of what that looks like?
from ldap-auth.
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.
this is now fixed...the token stuff I just return because its not really needed for these purposes.
from ldap-auth.
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.
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.
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)
- Error username_field not defined
- With model usage, no tutorial or instruction HOT 1
- Update the installation section of readme HOT 1
- Call to undefined method Ccovey\LdapAuth\LdapAuthServiceProvider::attempt() HOT 1
- User Model relationship HOT 6
- Prevent running this when using Artisan and SSL/TLS enabled HOT 3
- Laravel 4.1.26 upgrade error HOT 3
- MassAssignmentException being thrown when user exists in local DB. HOT 2
- Bypassing User Model for auth HOT 2
- Get "Departments"
- Error in LdapUser.php
- Just check if username exists
- Using key "username" instead of method "getUsernameField()"
- recursive_groups doesn't work
- Error thrown when using admin creds, returning false when not
- Class 'Ccovey\LdapAuth\InvalidArgumentException' not found
- adldap/adldap issue seems to be back HOT 1
- Possible to log users in to multiple domains ?
- Installing this HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ldap-auth.