Skip to content

Commit 1795ae2

Browse files
committed
chore: added complete set of user claims values in db for SPID and CIE
1 parent 9fea5eb commit 1795ae2

File tree

2 files changed

+143
-31
lines changed

2 files changed

+143
-31
lines changed

examples/federation_authority/dumps/example.json

Lines changed: 83 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,43 @@
1515
"email": "",
1616
"origin": null,
1717
"attributes": {
18-
"https://attributes.eid.gov.it/fiscal_number": "8sada89s7da89sd7a98sd78",
19-
"given_name": "peppe",
20-
"family_name": "maradona",
21-
"email": "[email protected]",
22-
"fiscal_number": "8sada89s7da89sd7a98sd78",
23-
"sub": "da750f319fa08358b1342d9de6156f590c8f97c6b5d33a9dfd71657e121ecc58",
24-
"username": "http://127.0.0.1:8002/oidc/op/__da750f319fa08358b1342d9de6156f590c8f97c6b5d33a9dfd71657e121ecc58",
25-
"first_name": "antonio",
26-
"last_name": "rossi"
18+
"https://attributes.eid.gov.it/spid_code":"ABCD123456789A",
19+
"given_name":"peppe",
20+
"family_name":"maradona",
21+
"place_of_birth":{
22+
"region":"NA",
23+
"locality":"F839"
24+
},
25+
"birthdate":"1980-10-10",
26+
"gender":"M",
27+
"https://attributes.eid.gov.it/company_name":"Maradona Inc",
28+
"https://attributes.eid.gov.it/registered_office":{
29+
"formatted":"Via del miracolo 21 80100 Napoli"
30+
},
31+
"https://attributes.eid.gov.it/fiscal_number":"TINIT-ABCXYZ00W00Z000Z",
32+
"https://attributes.eid.gov.it/company_fiscal_number":"TINIT-ABCXYZ00W00Z000Z",
33+
"https://attributes.eid.gov.it/vat_number":"VATIT-12345678901",
34+
"document_details":{
35+
"type":"cartaIdentita",
36+
"document_number":"AS09452389",
37+
"issuer":{
38+
"name":"ComuneNapoli"},
39+
"date_of_issuance":"2016-01-02",
40+
"date_of_expiry":"2026-01-31"
41+
},
42+
"phone_number":"39041322222",
43+
"email":"[email protected]",
44+
"https://attributes.eid.gov.it/e_delivery_service":"[email protected]",
45+
"https://attributes.eid.gov.it/eid_exp_date":"2050-01-01",
46+
"address": {
47+
"street_address":"503,Washington Avenue",
48+
"postal_code":"12401",
49+
"locality":"Kingston",
50+
"region":"New york",
51+
"country_code":"US"
52+
},
53+
"sub": "76f6777878cc718fad7a6c4337268b33276a8492ef8e036d8cb0f421780d4ede",
54+
"username": "http://127.0.0.1:8002/oidc/op__76f6777878cc718fad7a6c4337268b33276a8492ef8e036d8cb0f421780d4ede"
2755
},
2856
"groups": [],
2957
"user_permissions": []
@@ -45,12 +73,46 @@
4573
"email": "",
4674
"origin": null,
4775
"attributes": {
48-
"https://attributes.eid.gov.it/fiscal_number": "AATTTJDFKSKDF89",
49-
"given_name": "antonio",
50-
"family_name": "rossi",
51-
"email": "[email protected]",
52-
"fiscal_number": "8sada89s7da89sd7a98sd78"
53-
},
76+
"https://attributes.eid.gov.it/spid_code": "ABCD123456789A",
77+
"given_name": "antonio",
78+
"family_name": "rossi",
79+
"place_of_birth": {
80+
"region": "NA",
81+
"locality": "F839"
82+
},
83+
"birthdate": "1980-10-10",
84+
"gender": "male",
85+
"https://attributes.eid.gov.it/company_name": "AgID",
86+
"https://attributes.eid.gov.it/registered_office": {
87+
"formatted":"via Listz 21 00144 Roma"
88+
},
89+
"https://attributes.eid.gov.it/fiscal_number": "TINIT-AATTTJDFKSKDF89",
90+
"https://attributes.eid.gov.it/company_fiscal_number": "TINIT-ABCXYZ00W00Z000Z",
91+
"https://attributes.eid.gov.it/vat_number": "VATIT-12345678901",
92+
"document_details": {
93+
"type": "cartaIdentita",
94+
"document_number": "AS09452389",
95+
"issuer": {
96+
"name": "ComuneRoma"
97+
},
98+
"date_of_issuance": "2015-01-02",
99+
"date_of_expiry": "2025-01-31"
100+
},
101+
"phone_number": "39041322222",
102+
"email": "[email protected]",
103+
"https://attributes.eid.gov.it/e_delivery_service": "[email protected]",
104+
"https://attributes.eid.gov.it/eid_exp_date": "2049-01-01",
105+
"address": {
106+
"street_address": "503,Washington Avenue",
107+
"postal_code": "12401",
108+
"locality": "Kingston",
109+
"region": "New york",
110+
"country_code": "US"
111+
},
112+
"sub": "da750f319fa08358b1342d9de6156f590c8f97c6b5d33a9dfd71657e121ecc58",
113+
"username": "http://127.0.0.1:8000/oidc/op/__da750f319fa08358b1342d9de6156f590c8f97c6b5d33a9dfd71657e121ecc58"
114+
},
115+
54116
"groups": [],
55117
"user_permissions": []
56118
}
@@ -71,13 +133,12 @@
71133
"email": "[email protected]",
72134
"origin": null,
73135
"attributes": {
74-
"sub": "da750f319fa08358b1342d9de6156f590c8f97c6b5d33a9dfd71657e121ecc58",
75-
"username": "http://127.0.0.1:8000/oidc/op/__da750f319fa08358b1342d9de6156f590c8f97c6b5d33a9dfd71657e121ecc58",
76-
"first_name": "antonio",
77-
"last_name": "rossi",
78-
"email": "[email protected]",
79-
"fiscal_number": "AATTTJDFKSKDF89"
80-
},
136+
"https://attributes.eid.gov.it/fiscal_number": "AATTTJDFKSKDF89",
137+
"given_name": "antonio",
138+
"family_name": "rossi",
139+
"email": "[email protected]",
140+
"fiscal_number": "8sada89s7da89sd7a98sd78"
141+
},
81142
"groups": [],
82143
"user_permissions": []
83144
}

examples/provider/dumps/example.json

Lines changed: 60 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,39 @@
1515
"email": "",
1616
"origin": null,
1717
"attributes": {
18-
"https://attributes.eid.gov.it/fiscal_number": "8sada89s7da89sd7a98sd78",
18+
"https://attributes.eid.gov.it/fiscal_number":"TINIT-ABCXYZ00W00Z000Z",
1919
"given_name": "peppe",
2020
"family_name": "maradona",
21+
"place_of_birth":{
22+
"region":"NA",
23+
"locality":"F839"
24+
},
25+
"birthdate":"1980-10-10",
26+
"gender":"male",
2127
"email": "[email protected]",
22-
"fiscal_number": "8sada89s7da89sd7a98sd78",
28+
"email_verified": "true",
29+
"document_details":{
30+
"type":"cartaIdentita",
31+
"document_number":"AS09452389",
32+
"issuer":{
33+
"name":"ComuneNapoli"
34+
},
35+
"date_of_issuance":"2017-01-02",
36+
"date_of_expiry":"2027-01-31"
37+
},
2338
"sub": "5f32567af7e0e77ea09de8521ae5f6a0fd6984176e99a6bc694a8a0198231dc3",
2439
"username": "http://127.0.0.1:8000/oidc/op/__5f32567af7e0e77ea09de8521ae5f6a0fd6984176e99a6bc694a8a0198231dc3",
25-
"first_name": "peppe",
26-
"last_name": "maradona"
40+
"phone_number":"39081322222",
41+
"phone_number_verified":"true",
42+
"https://attributes.eid.gov.it/e_delivery_service":"[email protected]",
43+
"https://attributes.eid.gov.it/landline_number ":"12345678901",
44+
"address":{
45+
"street_address":"Via Liszt 21",
46+
"postal_code":"00144",
47+
"locality":"Roma",
48+
"region":"RM",
49+
"country_code":"IT"
50+
}
2751
},
2852
"groups": [],
2953
"user_permissions": []
@@ -45,11 +69,38 @@
4569
"email": "",
4670
"origin": null,
4771
"attributes": {
48-
"https://attributes.eid.gov.it/fiscal_number": "AATTTJDFKSKDF89",
49-
"given_name": "antonio",
50-
"family_name": "rossi",
51-
"email": "[email protected]",
52-
"fiscal_number": "8sada89s7da89sd7a98sd78"
72+
"https://attributes.eid.gov.it/fiscal_number":"TINIT-AATTTJDFKSKDF89",
73+
"given_name": "peppe",
74+
"family_name": "maradona",
75+
"place_of_birth":{
76+
"region":"NA",
77+
"locality":"F839"
78+
},
79+
"birthdate":"1990-10-10",
80+
"gender":"male",
81+
"email": "[email protected]",
82+
"email_verified": "true",
83+
"document_details":{
84+
"type":"cartaIdentita",
85+
"document_number":"AS01111189",
86+
"issuer":{
87+
"name":"ComuneRoma"
88+
},
89+
"date_of_issuance":"2017-01-02",
90+
"date_of_expiry":"2027-01-31"
91+
},
92+
"sub": "5f32567af7e0e77ea09de8521ae5f6a0fd6984176e99a6bc694a8a0198231dc3",
93+
"username": "http://127.0.0.1:8000/oidc/op/__5f32567af7e0e77ea09de8521ae5f6a0fd6984176e99a6bc694a8a0198231dc3",
94+
"phone_number":"39081322222",
95+
"phone_number_verified":"true",
96+
"https://attributes.eid.gov.it/e_delivery_service":"[email protected]",
97+
"address":{
98+
"street_address":"Via Liszt 21",
99+
"postal_code":"00144",
100+
"locality":"Roma",
101+
"region":"RM",
102+
"country_code":"IT"
103+
}
53104
},
54105
"groups": [],
55106
"user_permissions": []

0 commit comments

Comments
 (0)