Skip to content
This repository was archived by the owner on Jun 14, 2022. It is now read-only.
This repository was archived by the owner on Jun 14, 2022. It is now read-only.

[Additional feature] A more detailed "Entity Listing Response" #67

@peppelinux

Description

@peppelinux

Actually in 6.3.2. Entity Listing Response we have a result like this

200 OK
Last-Modified: Wed, 22 Jul 2018 19:15:56 GMT
Content-Type: application/json

[
  "https://ntnu.andreas.labs.uninett.no/",
  "https://blackboard.ntnu.no/openid/callback",
  "https://serviceprovider.andreas.labs.uninett.no/application17"
]

What do you think to have also additional attributes, something to deal with expiration time and last modification time?
expiration can be usefull to predict when that metadata MUST be updated (a http request in the future to /federation_api with that subject).
iat claim would be used to determine when a new metadata for this issues have been issued, it would match the update datetime. This will help to known which metadata would be updated (calling /federation_api with those subject).

Something like this example

200 OK
Last-Modified: Wed, 22 Jul 2018 19:15:56 GMT
Content-Type: application/json

{
  "https://ntnu.andreas.labs.uninett.no/": {"exp": 1619991866, "iat": 1588455866},
  "https://blackboard.ntnu.no/openid/callback" : {"exp": 1619991866, "iat": 1588455866},
  "https://serviceprovider.andreas.labs.uninett.no/application17: {"exp": 1619991866, "iat": 1588455866}"
}

regardless of the choice of which claim to use, this kind of structure would allow us a better "expandability" of the preview attributes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions