Attributes reference
You use SPID to verify the identity of end-users and obtain relevant personal information.
This page shows what end-user information you can request and receive for the following authentication protocols:
OIDC scopes and claims
You can use the following OIDC scopes to request personal information from an end-user using SPID. The claims column shows the data fields returned in the response.
By default, all claims listed below are returned in the UserInfo endpoint.
In addition, you can configure which user data claims you want to receive in the ID token object. To set this up, go to the Products > eID and Wallet Hub > OIDC Clients page in the Dashboard, choose your client, and edit the claims under Advanced Security > ID Token User data.
For further details about attributes and data formats, see the official SPID documentation.
OIDC response example
Below, you find examples of responses returned from an identity verification flow with SPID.
This section shows response examples for the UserInfo endpoint.
Example of natural person
Examples for the test user Ada Lovelace:
Scopes in the request: spid.
{
"idp_id": "SPID-0020020020",
"spid_place_of_birth": "G702",
"spid_county_of_birth": "PI",
"given_name": "Ada",
"family_name": "Lovelace",
"birthdate": "1985-12-10",
"gender": "F",
"sub": "HIDhYNt8ZaSa8dtg-hrljCnhiMXYhF54gFudp-warQM=",
"idp_issuer": "https://demo.spid.gov.it"
}
Scopes in the request: spid, nin, spid-extra.
{
"idp_id": "SPID-0020020020",
"nin": "TINIT-LVLDAA85T50G702B",
"nin_type": "TAX",
"nin_issuing_country": "IT",
"spid_place_of_birth": "G702",
"spid_county_of_birth": "PI",
"spid_id_card": "passaporto KK1234567 questuraLivorno 2016-09-04 2026-09-03",
"given_name": "Ada",
"family_name": "Lovelace",
"birthdate": "1985-12-10",
"gender": "F",
"phone_number": "3939393939",
"spid_expiration_date": "2028-01-01",
"address": {
"formatted": "Via Listz 21, Roma, RM, 00144, IT",
"street_address": "Via Listz 21",
"locality": "Roma",
"region" : "RM",
"postal_code": "00144",
"country": "IT"
},
"email": "aabyron@hotmail.com",
"sub": "HIDhYNt8ZaSa8dtg-hrljCnhiMXYhF54gFudp-warQM=",
"idp_issuer": "https://demo.spid.gov.it"
}
Example of organisation
Example of a response containing the organisation claim:
{
"spid_place_of_birth": "Roma",
"spid_county_of_birth": "RM",
"organisation": "Agenzia per l'Italia Digitale",
"spid_registered_office": "Via Listz 21 00144 Roma",
"spid_company_fiscal_number": "TINIT-GDASDV00A01H501J",
"spid_iva_code": "VATIT-97735020584",
"spid_id_card": "CartaIdentità AA00000000 ComuneRoma 2018-01-01 2028-01-01",
"given_name": "SpidValidator",
"family_name": "AgID",
"birthdate": "2000-01-01",
"gender": "M",
"phone_number": "+393331234567",
"spid_digital_address": "pec@pecagid.gov.it",
"spid_expiration_date": "2028-01-01",
"address":
{
"formatted": "Via Listz 21, Roma, RM, 00144, IT",
"street_address": "Via Listz 21",
"locality": "Roma",
"region" : "RM",
"postal_code": "00144",
"country": "IT"
},
"email": "spid.tech@agid.gov.it",
"sub": "ZZ0eRjWltcKswng6W-6....y-DDc1AwSEUP7C2aMZtw=",
"sub_legacy": "z507Ae7ecG282uDCSHiYa1Evt-Ryvq0ymKJqcdnzcTk=",
"idp_issuer": "https://demo.spid.gov.it/validator "
}
Signicat Authentication REST API attributes
The Signicat Authentication REST API supports the following request attributes for SPID:
The Authentication REST API returns idpId by default. You do not need to specify this attribute in your request.
idpId returns the SPID code of the user. Format is <code_IdP><N_DIGITS> where code_IdP is a four characters code unique for the identity provider. An example is ABCD-123456789A.
Authentication API request example
To create a session using the Authentication REST API, you send a POST request to the Create a new session endpoint of the Authentication REST API. This is https://api.signicat.com/auth/rest/sessions.
You define the parameters of the session in the payload of the request. For example:
{
"allowedProviders": [
"spid"
],
"flow": "redirect",
"requestedAttributes": [
"address",
"companyFiscalNumber",
"countyOfBirth",
"dateOfBirth",
"digitalAddress",
"email",
"expirationDate",
"firstName",
"gender",
"idCard",
"ivaCode",
"lastName",
"name",
"nin",
"organisationName",
"phoneNumber",
"placeOfBirth",
"registeredOffice"
],
"callbackUrls": {
"success": "https://example.com/success",
"abort": "https://example.com/abort",
"error": "https://example.com/error"
}
}
Authentication API response example
Example for the test user Lucrezia Borgia.
Response object (subject field):
{
"id": "51F6wWfm0jAIHYtoJpAViZ3cKp-Q3t9i2ZfmR0YHgHs=",
"idpId": "SPID-004",
"name": "Lucrezia Borgia",
"firstName": "Lucrezia",
"lastName": "Borgia",
"dateOfBirth": "1980-04-18",
"countyOfBirth": "RM",
"email": "luborgia@msn.com",
"nin": {
"value": "TINIT-BRGLRZ80D58H501Q",
"issuingCountry": "IT",
"type": "TAX"
},
"placeOfBirth": "H501",
"organisationName": "",
"registeredOffice": "",
"companyFiscalNumber": "",
"ivaCode": "",
"idCard": "cartaIdentita AK987654 comuneFerrara 2012-11-28 2023-04-18",
"digitalAddress": "",
"expirationDate": "2023-04-18",
"phoneNumber": "3495555555",
"gender": "F",
"address": "Via Listz 21, Roma, RM, 00144, IT",
"addressFormatted": {
"FullAddress": "Via Listz 21, Roma, RM, 00144, IT",
"Street": "Via Listz 21",
"City": "Roma",
"Region": "RM",
"PostalCode": "00144",
"Country": "IT"
}
}
SAML 2.0 attributes
When integrating with SAML 2.0, you specify which SPID user attributes Signicat returns in the SAML assertion by using <md:RequestedAttribute> elements. You can request SPID attributes in two ways:
- Define
<md:RequestedAttribute Name="<attribute>"/>elements inside an<md:AttributeConsumingService>block in your Service Provider (SP) metadata and reference the service index withAttributeConsumingServiceIndexin yourAuthnRequest(or mark the service withisDefault="true"). - Pass
<md:RequestedAttribute>elements inside<req-attr:RequestedAttributes>under<saml2p:Extensions>on individualAuthnRequestmessages.
For details on both mechanisms, see SAML requested attributes.
Signicat determines the SPID flow from the attributes you request:
- Requesting only Personal data attributes triggers the SPID Authentication flow.
- Requesting one or more Extra personal data attributes triggers the SPID Registration flow.
To support both flows in a single SAML 2.0 integration, define separate <md:AttributeConsumingService> entries in your SP metadata (for example, index="1" for Authentication and index="2" for Registration) and pass the corresponding AttributeConsumingServiceIndex in each AuthnRequest.
You can request the following SPID attributes in SAML 2.0:
The <saml2:NameID> element in <saml2:Subject> returns a persistent hashed identifier for the user across authentication sessions. To receive the user's SPID code as a SAML attribute, include <md:RequestedAttribute Name="idpId"/> in your request or metadata.
SAML 2.0 service provider metadata example
The following Service Provider (SP) metadata document defines two <md:AttributeConsumingService> blocks:
index="1"requests Personal data attributes for the SPID Authentication flow.index="2"requests both Personal data and Extra personal data attributes for the SPID Registration flow.
<?xml version="1.0" encoding="UTF-8"?>
<md:EntityDescriptor xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata"
ID="_45f42f65-39f9-4250-898e-f6297cb3f8ce"
entityID="SAML Example SP">
<md:SPSSODescriptor WantAssertionsSigned="false"
protocolSupportEnumeration="urn:oasis:names:tc:SAML:2.0:protocol">
<md:KeyDescriptor use="signing">
<ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
<ds:X509Data>
<ds:X509Certificate>X509_CERTIFICATE</ds:X509Certificate>
</ds:X509Data>
</ds:KeyInfo>
</md:KeyDescriptor>
<md:AssertionConsumerService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"
Location="https://*SP_CLIENT_DOMAIN*/saml/acs"
index="1"
isDefault="true"/>
<md:AttributeConsumingService index="1" isDefault="true">
<md:ServiceName xml:lang="en" xmlns:xml="http://www.w3.org/XML/1998/namespace">SPID Authentication flow</md:ServiceName>
<md:RequestedAttribute Name="idpId"/>
<md:RequestedAttribute Name="firstName"/>
<md:RequestedAttribute Name="lastName"/>
<md:RequestedAttribute Name="name"/>
<md:RequestedAttribute Name="dateOfBirth"/>
<md:RequestedAttribute Name="gender"/>
<md:RequestedAttribute Name="placeOfBirth"/>
<md:RequestedAttribute Name="countyOfBirth"/>
<md:RequestedAttribute Name="nin"/>
</md:AttributeConsumingService>
<md:AttributeConsumingService index="2" isDefault="false">
<md:ServiceName xml:lang="en" xmlns:xml="http://www.w3.org/XML/1998/namespace">SPID Registration flow</md:ServiceName>
<md:RequestedAttribute Name="idpId"/>
<md:RequestedAttribute Name="firstName"/>
<md:RequestedAttribute Name="lastName"/>
<md:RequestedAttribute Name="name"/>
<md:RequestedAttribute Name="dateOfBirth"/>
<md:RequestedAttribute Name="gender"/>
<md:RequestedAttribute Name="placeOfBirth"/>
<md:RequestedAttribute Name="countyOfBirth"/>
<md:RequestedAttribute Name="nin"/>
<md:RequestedAttribute Name="organisationName"/>
<md:RequestedAttribute Name="companyFiscalNumber"/>
<md:RequestedAttribute Name="ivaCode"/>
<md:RequestedAttribute Name="address"/>
<md:RequestedAttribute Name="email"/>
<md:RequestedAttribute Name="phoneNumber"/>
<md:RequestedAttribute Name="digitalAddress"/>
<md:RequestedAttribute Name="idCard"/>
<md:RequestedAttribute Name="expirationDate"/>
<md:RequestedAttribute Name="registeredOffice"/>
</md:AttributeConsumingService>
</md:SPSSODescriptor>
</md:EntityDescriptor>
SAML 2.0 request example
The following <saml2p:AuthnRequest> references AttributeConsumingServiceIndex="2" (the SPID Registration flow from the metadata example) and uses IdP scoping (ProviderID="spid") to pre-select SPID:
<?xml version="1.0" encoding="UTF-8"?>
<saml2p:AuthnRequest xmlns:saml2p="urn:oasis:names:tc:SAML:2.0:protocol"
AttributeConsumingServiceIndex="2"
Destination="https://*YOUR_SIGNICAT_DOMAIN*/auth/saml/login"
ID="_d2d2ae0656604b839d9bf36edca452a7"
IssueInstant="2026-04-26T10:06:19.352Z"
ProtocolBinding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"
Version="2.0">
<saml2:Issuer xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion">SAML Example SP</saml2:Issuer>
<saml2p:Scoping>
<saml2p:IDPList>
<saml2p:IDPEntry ProviderID="spid"/>
</saml2p:IDPList>
</saml2p:Scoping>
</saml2p:AuthnRequest>
SAML 2.0 response example
The following <saml2p:Response> shows the assertion returned for the SPID test user Lucrezia Borgia:
<?xml version="1.0" encoding="UTF-8"?>
<saml2p:Response xmlns:saml2p="urn:oasis:names:tc:SAML:2.0:protocol"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
Destination="https://*SP_CLIENT_DOMAIN*/saml/acs"
ID="_f6298fea54d5f4090c0ac4ebd3247de7"
InResponseTo="_d2d2ae0656604b839d9bf36edca452a7"
IssueInstant="2026-04-26T10:10:05.314Z"
Version="2.0">
<saml2:Issuer xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion">https://*YOUR_SIGNICAT_DOMAIN*/auth/saml</saml2:Issuer>
<saml2p:Status>
<saml2p:StatusCode Value="urn:oasis:names:tc:SAML:2.0:status:Success"/>
</saml2p:Status>
<saml2:Assertion xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
ID="_14bf7ff57d8cd43721c79f63d4db9c0a"
IssueInstant="2026-04-26T10:10:05.314Z"
Version="2.0">
<saml2:Issuer>https://*YOUR_SIGNICAT_DOMAIN*/auth/saml</saml2:Issuer>
<saml2:Subject>
<saml2:NameID Format="urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified"
NameQualifier="https://demo.spid.gov.it">51F6wWfm0jAIHYtoJpAViZ3cKp-Q3t9i2ZfmR0YHgHs=</saml2:NameID>
<saml2:SubjectConfirmation Method="urn:oasis:names:tc:SAML:2.0:cm:bearer">
<saml2:SubjectConfirmationData InResponseTo="_d2d2ae0656604b839d9bf36edca452a7"
NotOnOrAfter="2026-04-26T10:12:05.314Z"
Recipient="https://*SP_CLIENT_DOMAIN*/saml/acs"/>
</saml2:SubjectConfirmation>
</saml2:Subject>
<saml2:Conditions NotBefore="2026-04-26T10:09:05.314Z"
NotOnOrAfter="2026-04-26T10:12:05.314Z">
<saml2:AudienceRestriction>
<saml2:Audience>SAML Example SP</saml2:Audience>
</saml2:AudienceRestriction>
</saml2:Conditions>
<saml2:AttributeStatement>
<saml2:Attribute Name="idpId">
<saml2:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="xsd:string">SPID-004</saml2:AttributeValue>
</saml2:Attribute>
<saml2:Attribute Name="name">
<saml2:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="xsd:string">Lucrezia Borgia</saml2:AttributeValue>
</saml2:Attribute>
<saml2:Attribute Name="firstName">
<saml2:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="xsd:string">Lucrezia</saml2:AttributeValue>
</saml2:Attribute>
<saml2:Attribute Name="lastName">
<saml2:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="xsd:string">Borgia</saml2:AttributeValue>
</saml2:Attribute>
<saml2:Attribute Name="dateOfBirth">
<saml2:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="xsd:string">1980-04-18</saml2:AttributeValue>
</saml2:Attribute>
<saml2:Attribute Name="gender">
<saml2:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="xsd:string">F</saml2:AttributeValue>
</saml2:Attribute>
<saml2:Attribute Name="placeOfBirth">
<saml2:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="xsd:string">H501</saml2:AttributeValue>
</saml2:Attribute>
<saml2:Attribute Name="countyOfBirth">
<saml2:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="xsd:string">RM</saml2:AttributeValue>
</saml2:Attribute>
<saml2:Attribute Name="nin">
<saml2:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="xsd:string">TINIT-BRGLRZ80D58H501Q</saml2:AttributeValue>
</saml2:Attribute>
<saml2:Attribute Name="nin.issuingCountry">
<saml2:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="xsd:string">IT</saml2:AttributeValue>
</saml2:Attribute>
<saml2:Attribute Name="nin.type">
<saml2:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="xsd:string">TAX</saml2:AttributeValue>
</saml2:Attribute>
<saml2:Attribute Name="address">
<saml2:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="xsd:string">Via Listz 21, Roma, RM, 00144, IT</saml2:AttributeValue>
</saml2:Attribute>
<saml2:Attribute Name="address.fullAddress">
<saml2:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="xsd:string">Via Listz 21, Roma, RM, 00144, IT</saml2:AttributeValue>
</saml2:Attribute>
<saml2:Attribute Name="address.street">
<saml2:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="xsd:string">Via Listz 21</saml2:AttributeValue>
</saml2:Attribute>
<saml2:Attribute Name="address.city">
<saml2:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="xsd:string">Roma</saml2:AttributeValue>
</saml2:Attribute>
<saml2:Attribute Name="address.postalCode">
<saml2:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="xsd:string">00144</saml2:AttributeValue>
</saml2:Attribute>
<saml2:Attribute Name="address.country">
<saml2:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="xsd:string">IT</saml2:AttributeValue>
</saml2:Attribute>
<saml2:Attribute Name="email">
<saml2:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="xsd:string">luborgia@example.com</saml2:AttributeValue>
</saml2:Attribute>
<saml2:Attribute Name="phoneNumber">
<saml2:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="xsd:string">3495555555</saml2:AttributeValue>
</saml2:Attribute>
<saml2:Attribute Name="idCard">
<saml2:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="xsd:string">cartaIdentita AK987654 comuneFerrara 2012-11-28 2023-04-18</saml2:AttributeValue>
</saml2:Attribute>
<saml2:Attribute Name="expirationDate">
<saml2:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="xsd:string">2023-04-18</saml2:AttributeValue>
</saml2:Attribute>
</saml2:AttributeStatement>
<saml2:AuthnStatement AuthnInstant="2026-04-26T10:10:05.314Z"
SessionIndex="fe187084-671b-4784-997e-7ff69d68ebf5">
<saml2:AuthnContext>
<saml2:AuthnContextClassRef>substantial</saml2:AuthnContextClassRef>
<saml2:AuthenticatingAuthority>https://demo.spid.gov.it</saml2:AuthenticatingAuthority>
</saml2:AuthnContext>
</saml2:AuthnStatement>
</saml2:Assertion>
</saml2p:Response>