Skip to content

NameIDAttribute filter: update to use SAML2\XML\saml\NameID#735

Merged
thijskh merged 1 commit into
simplesamlphp:masterfrom
euven:nameidattribute-filter-fix
Dec 18, 2017
Merged

NameIDAttribute filter: update to use SAML2\XML\saml\NameID#735
thijskh merged 1 commit into
simplesamlphp:masterfrom
euven:nameidattribute-filter-fix

Conversation

@euven
Copy link
Copy Markdown
Contributor

@euven euven commented Dec 1, 2017

This patch fixes the following error when attempting to use NameIDAttribute filter (https://simplesamlphp.org/docs/1.15/saml:nameidattribute):
SimpleSAML_Error_Exception: Error 1 - Cannot use object of type SAML2\XML\saml\NameID as array

@thijskh
Copy link
Copy Markdown
Member

thijskh commented Dec 7, 2017

This should have been caught by a test... do you think you could add a testcase(s) for this authprocfilter? Many other authprocfilters already have tests you could look at for an example.

@euven
Copy link
Copy Markdown
Contributor Author

euven commented Dec 11, 2017

@thijskh sure thing - I'll look at getting some tests added ;)

Gaaf!

@euven
Copy link
Copy Markdown
Contributor Author

euven commented Dec 11, 2017

Hi @thijskh,

I've now added some tests - see the latest patch.

Cheers,
Eugene.

@thijskh
Copy link
Copy Markdown
Member

thijskh commented Dec 18, 2017

Excellent, thanks!

@thijskh
Copy link
Copy Markdown
Member

thijskh commented Dec 18, 2017

Confirmed that it fixes the problem for me as well.

@thijskh thijskh merged commit 1308714 into simplesamlphp:master Dec 18, 2017
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Mar 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants