Skip to content
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

@saabarukyatto

Description

@saabarukyatto
  • Laravel Version: 5.7
  • Adldap2-Laravel Version: 5.1.1
  • PHP Version: 7.2.11
  • LDAP Type: ActiveDirectory

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.

-S

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions