Versions Compared

Key

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

...

  1. The Relying Party fetches the OpenID Provider’s Entity Configuration.
  2. The Relying Party resolves and validates the trust chain using the Resolver to the Trust Anchor.
  3. If trust is valid, the Relying Party registers with the OpenID Provider.
  4. Authentication and token flows proceed under validated trust.

Example of

...

fetching Entity Configuration

Code Block
languagebash
curl -kss "https://trust-anchor.oidf.swefed.se/resolve?sub=https://intermediate.oidf.swefed.se&anchor=https://trust-anchor.oidf.swefed.se".well-known/openid-federation \
| cut -d '.' -f2 \
| tr '_-' '/+' \
| base64 -d 2>/dev/null \
| jq .

Explanation of each step

  • curl -

...

  • s: fetches the JWT, -s silences progress.

  • cut -d '.' -f2

...

  • : extracts the payload from the JWT (middle part).

  • tr '_-' '/+'

...

  • : translates Base64URL alphabet into standard Base64.

  • base64 -d

...

  • : decodes the payload.

  • jq .

...

  • : pretty-prints the JSON.