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

"isAllowedToLogin" on the ResourceServer Interface #17

Open
Jigsaw5279 opened this issue Sep 10, 2019 · 0 comments
Open

"isAllowedToLogin" on the ResourceServer Interface #17

Jigsaw5279 opened this issue Sep 10, 2019 · 0 comments

Comments

@Jigsaw5279
Copy link

Having a function like isAllowedToLogin(ResourceOwnerInterface $user): bool defined on the interface which decides wether or not a user should even be allowed to login, regardless if he'll be an admin or not, would provide a unified place for the logic to block certain users across all providers. Currently, you'd have to rely on things like userIsActive to really block out unwanted users, or bury that logic within your loadUserDetails function like the default provider does.

Again, if you like this, I'd be happy to implement it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant