Open tbfisher opened 5 years ago
in stanford_ssp_configuration_form() each of these settings state in the field description
stanford_ssp_configuration_form()
"If the attribute is multivalued, the first value will be used."
however the getter functions
stanford_simplesamlphp_auth_get_authname()
stanford_simplesamlphp_auth_get_username()
stanford_simplesamlphp_auth_get_email()
assume it is an array and always fetch the first value
Oh I see, each of those functions is assuming array and should validate the value in the attributes array for single vs multiple values.
https://github.com/SU-SWS/stanford_ssp/blob/7.x-2.x/modules/stanford_simplesamlphp_auth/stanford_simplesamlphp_auth.inc#L578
An is_scalar check is needed here I suppose.
is_scalar
in
stanford_ssp_configuration_form()
each of these settings state in the field description"If the attribute is multivalued, the first value will be used."
however the getter functions
stanford_simplesamlphp_auth_get_authname()
stanford_simplesamlphp_auth_get_username()
stanford_simplesamlphp_auth_get_email()
assume it is an array and always fetch the first value