OIDC Discovery & SAML Metadata Validator

Your identity provider publishes a description of itself. Check it before you trust it.

OpenID Connect discovery is the document an identity provider publishes at /.well-known/openid-configuration — its issuer, its endpoints, its signing keys and the flows it supports. SAML metadata is the equivalent description for SAML: an XML document naming the entity, its endpoints, its signing certificate and its NameID formats. Both are the first thing a relying party reads, and both are easy to get wrong: an issuer that does not match, an endpoint served over plain HTTP, a signing certificate that expired last month. Paste a discovery document or metadata here, or check an issuer live, and this validator audits it in your browser — never uploaded — and scores it 0–100. The companion article OIDC discovery and SAML metadata, explained covers the issuer-match rule, the failure modes seen in practice, and a five-minute checklist for your own IdP. Also see the GraphQL Introspection & Security Checker and the JWT Decoder & Verifier.

Last updated:

1. Check an OIDC issuer

Live check fetches <issuer>/.well-known/openid-configuration through the SysOSX checker — the browser never fetches the issuer directly. sysosx.com itself cannot be checked (it is not an identity provider).

2. Audit SAML metadata

Drop a metadata file here, or choose one below

IdP or SP metadata XML. Up to 1 MB — parsed in your browser, never uploaded.

🔒 The audit runs entirely in your browser: pasted discovery JSON and SAML metadata are never uploaded, never stored, and never sent anywhere. The live OIDC check fetches the discovery document server-side and returns it for the browser to validate — the issuer URL you type is the only thing sent.

What OIDC discovery and SAML metadata are

OpenID Connect discovery is a JSON document an identity provider serves at a fixed path: the issuer URL plus /.well-known/openid-configuration. It lists the issuer, the authorization, token, userinfo, revocation and introspection endpoints, the JWKS URI where the signing keys live, the response types and grant types it supports, the scopes and claims it offers, and the signing algorithms and PKCE methods it accepts. A relying party fetches it once and configures itself from it — which is why the document has to be right: a wrong endpoint or a missing algorithm breaks login for every client that trusts it.

SAML metadata is the same idea in XML, for the older SAML 2.0 federation protocol. An EntityDescriptor names the entity (entityID), states how long the metadata is valid (validUntil, cacheDuration), and describes one or more roles — usually an IDPSSODescriptor for an identity provider or SPSSODescriptor for a service provider — each with its signing key (an X.509 certificate), its Single Sign-On and Single Logout endpoints with their bindings (HTTP-Redirect, HTTP-POST, HTTP-Artifact), the NameID formats it issues, and whether it wants authentication requests signed. Federation works by exchanging these documents out of band, so a stale or wrong one fails silently at the worst moment: when a user tries to log in.

The issuer-match rule is the one check that matters most. The issuer in the discovery document must be exactly the issuer the relying party asked for — same string, character for character. If they differ, the relying party may be talking to one provider while believing it is talking to another: that is the shape of a mix-up attack, where an attacker’s provider answers for a victim’s issuer and the tokens that come back are accepted for the wrong party. The rule is in OIDC Discovery 1.0 and in the OAuth 2.0 Security Best Current Practice (RFC 9700) for exactly that reason, and this validator treats a mismatch as its heaviest finding.

Scoring starts at 100 and deducts per finding: an issuer mismatch costs 50, a missing required field 12, an endpoint served over HTTP 10, a missing RS256 or a `none` signing algorithm 12–15, a missing openid scope 8, no S256 PKCE 6, and legacy implicit-flow response types 5. SAML findings cost the same way: a missing entityID 25, an expired certificate or expired metadata 25, a missing SSO endpoint 20, an unsigned document 10, a certificate expiring within 30 days 10. Info notes — a missing optional endpoint, PAR support — cost nothing. The verdicts are Healthy (90+), Needs attention (70–89), Weak (40–69) and Broken (below 40).

What this validator does — and what it does not

It validates an OIDC discovery document in your browser against OpenID Connect Discovery 1.0: all seven required fields present, the issuer matching the one you asked for exactly, every endpoint served over HTTPS, RS256 among the signing algorithms (and `none` never allowed), openid among the scopes, S256 PKCE listed, no implicit-flow response types or grant types, the core ID-token claims listed, and the optional endpoints inventoried. For SAML metadata it checks the entityID, signature presence, the signing certificate’s expiry read from the embedded X.509 bytes, the WantAuthnRequestsSigned and AuthnRequestsSigned flags, SSO/SLO endpoints with their bindings, the NameID format, and validUntil/cacheDuration sanity. Results are a 0–100 score with a verdict, findings grouped by severity with a fix for each, an inventory, and findings CSV and JSON exports.

It does not fetch the issuer from your browser: the live OIDC check asks the SysOSX checker to fetch the discovery document and return it, because browsers block cross-origin fetches to most issuers. It does not verify the signature on SAML metadata — it only reports whether a signature element is present — and it does not verify that a signing certificate belongs to the entity that claims it: that is a trust decision made when the metadata was exchanged, not something a document can prove about itself.

The OIDC demo checks Google’s issuer live: https://accounts.google.com, whose discovery document is healthy — the only scored finding is the implicit-flow response types Google still lists. The SAML demo is synthetic metadata for the example IdP https://idp.example.com/metadata, with a real self-signed certificate (valid to 2036-11-26) and one rule planted to trip: AuthnRequestsSigned is not set, so it scores 95 with one Low finding. One click fills the input and shows the result on the first screen.

Be honest about what a score means

Discovery and metadata validation is structural: it checks that the document says the right things, in the right shape. A perfect score does not prove the identity provider is secure, that it validates tokens correctly, or that the signature on the metadata is genuine — the tool only reports that a signature element is present, and never verifies it cryptographically. A certificate inside metadata can be expired, self-signed, or belong to someone else entirely; the tool reads its dates, not its trustworthiness.

And a clean audit is not a clean bill of health. Key rollover, token validation, session handling and everything the provider does at runtime are out of scope here — this tool only ever sees the document. “No findings” means the document is well formed and its claims check out — not that the provider behind it is safe.

Key facts

OIDC discoveryThe JSON document at /.well-known/openid-configuration: the provider’s issuer, endpoints, signing keys (JWKS URI), supported flows, scopes, claims and algorithms. Defined by OpenID Connect Discovery 1.0.
IssuerThe provider’s identifier URL, e.g. https://accounts.google.com. The issuer in the discovery document must match the issuer the relying party asked for, exactly — a mismatch is the mix-up-attack shape.
JWKSJSON Web Key Set: the signing keys published at the document’s jwks_uri. A relying party fetches them to verify ID-token signatures; a stale or unreachable JWKS breaks login.
PKCEProof Key for Code Exchange: the code_challenge that stops an intercepted authorisation code from being redeemed. S256 (SHA-256) is the method the OAuth 2.0 Security BCP requires; plain is not enough.
SAML metadataThe XML document that describes a SAML entity: its entityID, validity window, roles, signing certificate, SSO/SLO endpoints and bindings, and NameID formats. Exchanged out of band before federation works.
EntityIDThe unique name of a SAML entity, usually a URL such as https://idp.example.com/metadata. It identifies the entity in every message; a missing entityID means the document names nobody.
NameID formatThe format of the identifier the IdP puts in its assertions — persistent, transient, emailAddress, or unspecified. The service provider and the IdP must agree on one, or the assertion cannot be matched to a user.
Spec referencesOpenID Connect Discovery 1.0 — openid.net · SAML 2.0 Metadata — OASIS

Frequently asked questions

Why must the issuer in the document match the issuer I asked for?

Because the issuer is how a relying party knows who it is talking to. If the document says one issuer while the client asked for another, the client may accept tokens from a provider it never meant to trust — the mix-up attack shape described in the OAuth 2.0 Security Best Current Practice (RFC 9700). The check is exact: same string, character for character, including any trailing path. A mismatch is not a typo to work around; it means the discovery document does not belong to the issuer you asked about.

Google’s discovery document scores 95 — is the implicit flow a problem?

Only if a client picks it. The implicit flow returns tokens in the URL fragment, where they can leak through browser history, referrer headers and logs — that is why RFC 9700 tells new clients not to use it. Google still lists the implicit response types, so the document is flagged, but a client that requests response_type=code is unaffected. The finding is a warning about what the provider advertises, not a verdict on the provider.

My SAML metadata is unsigned — is that bad?

It depends on how the metadata was exchanged. Metadata fetched over HTTPS from a known location, or handed over directly by the partner, is trustworthy because of the channel, not because of a signature inside the document. A signature only helps when the metadata travels through an untrusted channel — a federation aggregate, a public URL — and even then this tool can only report that a signature element is present: it never verifies the signature cryptographically, so a present signature is not proof the metadata is genuine. Treat “unsigned” as a prompt to check how you got the file, not as a failure by itself.