-
Notifications
You must be signed in to change notification settings - Fork 76
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
add idp-based prefix to gid #474
base: stable-3.2
Are you sure you want to change the base?
add idp-based prefix to gid #474
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know enough about the assumptions
@@ -673,17 +673,43 @@ public function updateAttributes($uid, | |||
} | |||
|
|||
if ($newGroups !== null) { | |||
$prefix = ''; | |||
$mapping = $this->config->getSystemValue('user_saml.unique_groups_per_idp', ''); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are both settings new? then let's leave out the system one. do not need to make it more bloated then necessary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
requested by customer to have the config in config/config.php instead of using the occ config:app:set
if ($mapping !== '' && | ||
array_key_exists($mapping, $attributes) && | ||
is_array($attributes[$mapping]) && | ||
sizeof($attributes[$mapping]) === 1) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd fancy to have the operators on the left handside for better readability. On the right they are rugged and thus harder to spot. I am not sure whether we have written it down though in the coding style though.
array_key_exists($mapping, $attributes) && | ||
is_array($attributes[$mapping]) && | ||
sizeof($attributes[$mapping]) === 1) { | ||
$realUid = $attributes[$mapping][0]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am thinking of user id but that's not what it should be, or did I misunderstand it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is to avoid a spoof of the domain from one of the idp
4f94cc1
to
9e19e04
Compare
No description provided.