...
- The Relying Party fetches the OpenID Provider’s Entity Configuration.
- The Relying Party resolves and validates the trust chain using the Resolver to the Trust Anchor.
- If trust is valid, the Relying Party registers with the OpenID Provider.
- Authentication and token flows proceed under validated trust.
Example of
...
fetching Entity Configuration
| Code Block | ||
|---|---|---|
| ||
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,-ssilences 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.