Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow LDAP model lookup from Auth provider #2744

Conversation

crossplatformconsulting
Copy link

@crossplatformconsulting crossplatformconsulting commented Oct 23, 2024

allows for ldap authentication where the model differs from the database model - ldap still uses the App\Models\User, just indirectly.

@drbyte
Copy link
Collaborator

drbyte commented Oct 23, 2024

Thanks.

It seems we're doing similar lookups in a couple of the Guard class methods as well.
I wonder if we should take this logic there, and simply have this function call it?

@drbyte drbyte changed the title Update helpers.php Allow LDAP model lookup from Auth provider Oct 23, 2024
@crossplatformconsulting
Copy link
Author

@drbyte
Copy link
Collaborator

drbyte commented Oct 23, 2024

I was thinking the other way around: Update the Guard class (can an existing method be used here?), and then the helper can call the method in the Guard class, kinda like a proxy/shorthand.

@crossplatformconsulting
Copy link
Author

@crossplatformconsulting
Copy link
Author

better?

@crossplatformconsulting crossplatformconsulting closed this by deleting the head repository Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants