Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The Discovery Service JSON file is primary used for Discovery services to show information about the SP and IdP when selecting an IdP. But the information can be useful for other use-cases aswell. Please not that the JSON file includes data for both SWAMID and inter-federations.

Here is an example of listing all scopes for the IdPs registered in SWAMID with curl and jq.TBA

Code Block
languagebash
curl -s https://mds.swamid.se/md/swamid-transitive-ds.json | jq '.[] | select ( .registrationAuthority == "http://www.swamid.se/" and .type == "idp" ) | "\(.scope) \(.entityID)"'

...