-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
hd parameters allow to limit allowed users to those belonging to one specific GSuite domain (other values like * or unset allow every user).
This is done by vendor/league/oauth2-google/src/Provider/Google.php::assertMatchingDomain()
which is the last instruction done before Provider::getResourceOwner() returns.
This is not as flexible as possible as it may be desirable to provide whitelisted domains either as a list or a regexp, ...
A flexible and future-proof solution would be to simply allow user-provided function to define this behavior (taking OIDC user-data as parameters and returning a boolean about whether user is accepted).
Do you think there could be room, either inBaseProvider.php or GoogleProvider.php for such an improvement?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels