You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 24, 2023. It is now read-only.
This repository was archived by the owner on Jul 24, 2023. It is now read-only.
Return value of Adldap\Laravel\Resolvers\UserResolver::getAppAuthProvider() must implement interface Illuminate\Contracts\Auth\UserProvider, null returned #691
Hi, I'm having a weird behavior with the Auth attempt method and adldap with 0 google search results.
So to begin what I need is check written credentials in an API controller function to make sure that the request was indeed posted by the legitimate owner of the logged in account.
To do that I need to attempt a login when already authenticated by the API guard.
I initially tried Auth:attempt($credentials);
(Worked before implementing the adldap module) but for some reason now does not exist anymore.
So after looking online I found this method to call the web guard to attempt the login: Auth::guard('web')->attempt(['username' => <username>, 'password' => <password>], false, false);
But I'm getting this weird error message:
Return value of Adldap\Laravel\Resolvers\UserResolver::getAppAuthProvider() must implement interface Illuminate\Contracts\Auth\UserProvider, null returned
What I am doing wrong ? The ldap module works flawlessly apart from this quirk.