Commit ec625eb
committed
Make Name ID and attribute value trimming an opt-in feature
Name IDs (including issuers) are by default left untouched, as well as
attribute values, like it was before. However two new settings have
been introduced (whose default value is false) which allow to enable
trimming for such values, which is probably the desired behaviour in
practice, although SAML specification says that no whitespace processing
should be performed on strings.
Another place where trimming may be desirable is in SessionIndex
extraction from LogoutRequests: this is not performed at any point of
the LogoutRequest processing, but an overloading has been provided so
that the API consumer may still request trimming.
AuthnResponseTest.testGetIssuersTrimming() is disabled by now because it
fails due to a bug in SamlResponse.getIssuers() which is addressed by
another PR.1 parent 1a7b0da commit ec625eb
File tree
17 files changed
+659
-149
lines changed- core/src
- main/java/com/onelogin/saml2
- authn
- logout
- settings
- util
- test
- java/com/onelogin/saml2/test
- authn
- logout
- settings
- resources
- config
- data
- logout_requests
- logout_responses
- responses
17 files changed
+659
-149
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
362 | 362 | | |
363 | 363 | | |
364 | 364 | | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
365 | 374 | | |
366 | 375 | | |
367 | 376 | | |
| |||
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
471 | 471 | | |
472 | 472 | | |
473 | 473 | | |
474 | | - | |
| 474 | + | |
475 | 475 | | |
476 | 476 | | |
477 | 477 | | |
| |||
602 | 602 | | |
603 | 603 | | |
604 | 604 | | |
605 | | - | |
606 | | - | |
| 605 | + | |
| 606 | + | |
607 | 607 | | |
608 | 608 | | |
609 | 609 | | |
| |||
735 | 735 | | |
736 | 736 | | |
737 | 737 | | |
738 | | - | |
| 738 | + | |
739 | 739 | | |
740 | 740 | | |
741 | 741 | | |
| |||
762 | 762 | | |
763 | 763 | | |
764 | 764 | | |
765 | | - | |
| 765 | + | |
766 | 766 | | |
767 | 767 | | |
768 | 768 | | |
| |||
0 commit comments