Commit f7364f7
committed
Add support for multiple fully-fledged contacts for SP
It's now possible to specify an arbitrary number of contacts, with all
the information supported by the SAML 2.0 specification, including
multiple e-mail addresses and multiple phone numbers per contact. Since
this is indeed information related to the Service Provider (which
appears in the SP metadata), the new (indexed) properties used to
declare contacts have been put in the "onelogin.saml2.sp" namespace and
their parsing uses the same technique used to support multiple Attribute
Consuming Services.
The legacy way to specify just a technical and a support contacts is
still supported (these "legacy" contacts are appended as the last two
ones). The Contact class has been enhanced to support all ContactType
attributes supported by the SAML 2.0 specification but still exposes the
old constructor and single e-mail address getter (although being
deprecated) to provide a 100% backward compatible API.
Fixes #326.1 parent 043ca5e commit f7364f7
File tree
11 files changed
+620
-73
lines changed- core/src
- main/java/com/onelogin/saml2
- model
- settings
- util
- test
- java/com/onelogin/saml2/test/settings
- resources/config
11 files changed
+620
-73
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
253 | 278 | | |
254 | 279 | | |
255 | 280 | | |
| |||
374 | 399 | | |
375 | 400 | | |
376 | 401 | | |
377 | | - | |
378 | | - | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | 402 | | |
390 | 403 | | |
391 | 404 | | |
| |||
Lines changed: 92 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
3 | 6 | | |
4 | 7 | | |
5 | 8 | | |
| |||
8 | 11 | | |
9 | 12 | | |
10 | 13 | | |
11 | | - | |
12 | | - | |
| 14 | + | |
| 15 | + | |
13 | 16 | | |
14 | 17 | | |
15 | 18 | | |
16 | | - | |
17 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
18 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
19 | 32 | | |
20 | 33 | | |
21 | | - | |
22 | | - | |
23 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
24 | 37 | | |
25 | 38 | | |
26 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
27 | 48 | | |
28 | 49 | | |
29 | | - | |
| 50 | + | |
30 | 51 | | |
31 | | - | |
| 52 | + | |
32 | 53 | | |
33 | | - | |
| 54 | + | |
| 55 | + | |
34 | 56 | | |
| 57 | + | |
35 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
36 | 80 | | |
37 | | - | |
38 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
39 | 86 | | |
40 | 87 | | |
41 | 88 | | |
| |||
46 | 93 | | |
47 | 94 | | |
48 | 95 | | |
49 | | - | |
| 96 | + | |
| 97 | + | |
50 | 98 | | |
| 99 | + | |
51 | 100 | | |
52 | | - | |
| 101 | + | |
53 | 102 | | |
54 | 103 | | |
55 | 104 | | |
56 | | - | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
57 | 113 | | |
58 | 114 | | |
59 | 115 | | |
60 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
61 | 131 | | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
62 | 138 | | |
Lines changed: 15 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
280 | | - | |
281 | | - | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
282 | 295 | | |
283 | 296 | | |
284 | 297 | | |
| |||
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
| |||
1032 | 1034 | | |
1033 | 1035 | | |
1034 | 1036 | | |
1035 | | - | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
1036 | 1041 | | |
1037 | 1042 | | |
1038 | 1043 | | |
| |||
0 commit comments