Porniți un proces de autentificare
Selectați o țară:
Doar cu atribute obligatorii
Atribute obligatorii si opționale
Țările și atributele disponibile pot fi interogate folosind o cerere de tip `HTTP-GET` către `https://dev.eidas.gov.ro/SP/AvailableCountries` .
Selectați un nivel de asigurare minim:
Pentru fiecare categorie avem cate un nivel:
- A,B -> Scazut;
- C,D -> Substantial;
- E -> Inalt
Ghid de integrare a unui SP romanesc
În funcție de țara selectata și atributele cerute de către SP, trebuie pregătit o cerere JSON.
Câteva exemple sunt prezente mai jos.
Doar cu atribute obligatorii
{
"authentication_request" : {
"attribute_list" : [ {
"type" : "requested_attribute",
"name" : "FirstName",
"required" : true
}, {
"type" : "requested_attribute",
"name" : "DateOfBirth",
"required" : true
}, {
"type" : "requested_attribute",
"name" : "FamilyName",
"required" : true
}, {
"type" : "requested_attribute",
"name" : "PersonIdentifier",
"required" : true
} ],
"requested_authentication_context" : {
"comparison" : "minimum",
"context_class" : [ "A" ]
},
"citizen_country" : "CZ",
"created_on" : "2025-04-04T01:43:52.838202+03:00",
"force_authentication" : true,
"id" : "317fff85-42fa-409e-a70e-b112d9a1dbe5",
"provider_name" : "DEMO-SP-RO",
"requester_id" : "http://eidas.eu/EidasNode/RequesterId_RO",
"serviceUrl" : "https://dev.eidas.gov.ro/SP/ReturnPage",
"sp_type" : "public",
"version" : "1"
}
}
Atribute obligatorii și opționale
{
"authentication_request" : {
"attribute_list" : [ {
"type" : "requested_attribute",
"name" : "PlaceOfBirth",
"required" : false
}, {
"type" : "requested_attribute",
"name" : "FirstName",
"required" : true
}, {
"type" : "requested_attribute",
"name" : "DateOfBirth",
"required" : true
}, {
"type" : "requested_attribute",
"name" : "CurrentAddress",
"required" : false
}, {
"type" : "requested_attribute",
"name" : "FamilyName",
"required" : true
}, {
"type" : "requested_attribute",
"name" : "PersonIdentifier",
"required" : true
} ],
"requested_authentication_context" : {
"comparison" : "minimum",
"context_class" : [ "A" ]
},
"citizen_country" : "CZ",
"created_on" : "2025-04-04T01:43:52.838202+03:00",
"force_authentication" : true,
"id" : "317fff85-42fa-409e-a70e-b112d9a1dbe5",
"provider_name" : "DEMO-SP-RO",
"requester_id" : "http://eidas.eu/EidasNode/RequesterId_RO",
"serviceUrl" : "https://dev.eidas.gov.ro/SP/ReturnPage",
"sp_type" : "public",
"version" : "1"
}
}
Folosind cererea JSON, vom produce o cerere JWT semnata folosind cheia privata.
Atenție! Semnătură trebuie oferita la nivel de server, nu la nivel de browser.
Doar cu atribute obligatorii
eyJhbGciOiJFUzUxMiJ9.eyJhdXRoZW50aWNhdGlvbl9yZXF1ZXN0Ijp7ImF0dHJpYnV0ZV9saXN0IjpbeyJ0eXBlIjoicmVxdWVzdGVkX2F0dHJpYnV0ZSIsIm5hbWUiOiJGaXJzdE5hbWUiLCJyZXF1aXJlZCI6dHJ1ZX0seyJ0eXBlIjoicmVxdWVzdGVkX2F0dHJpYnV0ZSIsIm5hbWUiOiJEYXRlT2ZCaXJ0aCIsInJlcXVpcmVkIjp0cnVlfSx7InR5cGUiOiJyZXF1ZXN0ZWRfYXR0cmlidXRlIiwibmFtZSI6IkZhbWlseU5hbWUiLCJyZXF1aXJlZCI6dHJ1ZX0seyJ0eXBlIjoicmVxdWVzdGVkX2F0dHJpYnV0ZSIsIm5hbWUiOiJQZXJzb25JZGVudGlmaWVyIiwicmVxdWlyZWQiOnRydWV9XSwicmVxdWVzdGVkX2F1dGhlbnRpY2F0aW9uX2NvbnRleHQiOnsiY29tcGFyaXNvbiI6Im1pbmltdW0iLCJjb250ZXh0X2NsYXNzIjpbIkEiXX0sImNpdGl6ZW5fY291bnRyeSI6IkNaIiwiY3JlYXRlZF9vbiI6IjIwMjUtMDQtMDRUMDE6NDM6NTIuODM4MjAyKzAzOjAwIiwiZm9yY2VfYXV0aGVudGljYXRpb24iOnRydWUsImlkIjoiMzE3ZmZmODUtNDJmYS00MDllLWE3MGUtYjExMmQ5YTFkYmU1IiwicHJvdmlkZXJfbmFtZSI6IkRFTU8tU1AtUk8iLCJyZXF1ZXN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