italia / spid-cie-oidc-django

The SPID/CIE OIDC Federation SDK, written in Python
Apache License 2.0
27 stars 28 forks source link

[Feat] Advanced Entity Listing endpoint for TA #85

Closed peppelinux closed 2 years ago

peppelinux commented 2 years ago

A request/response example

this feature MAY be implemented in spid_cie_oidc.authority.

GET /federation_adv_list HTTP/1.1
Host: registry.spid.gov.it

200 OK
Last-Modified: Mon, 17 Dec 2018 11:15:56 GMT
Content-Type: application/json

{
 "iss": "https://registry.spid.gov.it/",
 "iat": 1620050972,
 "entities": [
   {
    "https://rp.example.it/spid/": {
       "iat": 1588455866,
   },
   {
    "https://rp.another.it/spid/": {
       "iat": 1588455856,
   },
   {
    "https://rp.it/spid/": {
       "iat": 1588355866,
   },
   ... # many other entries
 ],
"page": 1,
"total_pages": 2,
"total_entries": 189,
"next_page_path": "/federation_adv_list/?page=2",
"prev_page_path": ""
}
peppelinux commented 2 years ago

Closed by https://github.com/italia/spid-cie-oidc-django/pull/132