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

username, uid, and email settings description incorrect #65

Open
tbfisher opened this issue Jan 10, 2019 · 1 comment
Open

username, uid, and email settings description incorrect #65

tbfisher opened this issue Jan 10, 2019 · 1 comment
Labels

Comments

@tbfisher
Copy link

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

@sherakama
Copy link
Member

sherakama commented Jan 10, 2019

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.

@sherakama sherakama added the bug label Jan 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants