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

Issue in SamlToken->updateCredentials #3

Closed
penkyhurk opened this issue May 26, 2020 · 1 comment
Closed

Issue in SamlToken->updateCredentials #3

penkyhurk opened this issue May 26, 2020 · 1 comment

Comments

@penkyhurk
Copy link

Found an issue in
Swisscom\SimpleSamlServiceProvider\Security\Authentication\Token\SamlToken.php
function updateCredentials:

In case of 'username' is not provided in array $attributes the else case sets $this->credentials['username'] = $nameId->getValue();
(line 60).

This fails due to Class \SAML2\XML\saml\NameID does not have any methods and ancestors don't have a getter named getValue().
Of course this case seems to be rare ;-)

@simstern
Copy link
Contributor

Thanks for the report. The accessibility of NameID properties has change in v3 of simplesamlphp/saml2 which is only required since v1.17 of simplesamlphp/simplesamlphp. I therfore changed the miniumum requirements which should fix that.

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

2 participants