Skip to content

meaning of FAPI2 requirements around publishing discovery data #862

Open

Description

@jogu

What does the 'and' here mean:

shall distribute discovery metadata (such as the authorization endpoint) via the metadata document as specified in [OIDD] and [RFC8414];

Does it mean a server has to publish both?

Currently the conformance tests check:

  1. if openid connect is enabled, only openid-configuration is checked
  2. if openid connect is not enabled, only oauth-authorization-server is checked

Given the 'and' I'm not actually sure this is correct and if server's are expected to publish in both locations?

Discussed a bit on today's WG call.

Activity

  1. sakimura commented on Sep 23, 2026

    @sakimura
    Member

    The only way to read the text verbatim is for the server to publish at both locations. (I am not saying that was the intention but the text does say it.) If it were allowed to publish only at one of them, then the text would say "and/or".

  2. bprasana commented on Nov 2, 2026

    @bprasana

    Commenting from the adopter side rather than as a FAPI implementer. I work on verifiable credential verification for workforce identity, where the high-assurance profile builds on FAPI 2.0. Discovery behaviour is where we feel inconsistency first: a verifier that cannot rely on how discovery responds across deployments ends up special-casing providers, and the profile stops being a profile. One clarified behaviour, even a strict one, is worth more to adopters than optionality here.

  3. sakimura commented on Nov 11, 2026

    @sakimura
    Member

    Perhaps we should make it "or" in an errata ...

  4. jogu commented on Nov 11, 2026

    @jogu
    ContributorAuthor

    note: #863 was raised to discuss what to do in the conformance tests.

  5. jogu commented on Nov 11, 2026

    @jogu
    ContributorAuthor

    I did a quick sweep of what deployed servers actually publish today, to see what each reading of the "and" would mean in practice.

    Method: I took the authorization server issuers that have been tested with the conformance suite (107 distinct issuers), and fetched both {issuer}/.well-known/openid-configuration and the RFC 8414 location (/.well-known/oauth-authorization-server inserted between host and path) from each. 82 were still reachable.

    Caveats: the list is all servers tested with the suite (OpenID Connect, FAPI 1, FAPI 2 and CIBA), not only FAPI 2 deployments, and as many of these require OpenID Connect it is biased towards servers that have an openid-configuration. Many are sandbox / test environments.

    What is published

    Servers
    openid-configuration only 50
    Both, with RFC 8414 metadata at the correct location 23
    Both, but RFC 8414 metadata only at the wrong location ({issuer}/.well-known/oauth-authorization-server, for issuers with a path) 9
    RFC 8414 only 0

    For the 50 "openid-configuration only" servers the RFC 8414 location is mostly a 404. Three of them return a 200 with JSON that is not authorization server metadata at all (no issuer).

    Where both exist, do they match?

    Identical Different
    RFC 8414 metadata at the correct location (23) 17 6
    RFC 8414 metadata at the wrong location (9) 2 7

    So 13 of the 32 servers that publish both publish two documents that disagree. The differences range from harmless to serious:

    • Different issuer. Three deployments (same vendor stack) return an internal hostname as the issuer in the RFC 8414 document, with every endpoint pointing at that host.
    • Different security posture. Several have require_pushed_authorization_requests: true in openid-configuration and false in the RFC 8414 document, and the RFC 8414 document additionally lists plain PKCE, client_secret_* client authentication and password / implicit grants.
    • Different endpoints. Two deployments list different authorization, introspection, revocation, userinfo and registration endpoints, a different jwks_uri and different mtls_endpoint_aliases in the two documents.
    • Missing FAPI-relevant metadata. One has no pushed_authorization_request_endpoint, authorization_response_iss_parameter_supported or mtls_endpoint_aliases in the RFC 8414 document; another has authorization_response_iss_parameter_supported only in the RFC 8414 document.
    • Benign. The RFC 8414 document is the openid-configuration minus the OpenID Connect specific entries, or differs only in array order.

    The pattern in the serious cases is that openid-configuration is the document that has been curated for the FAPI profile, and the RFC 8414 document is whatever the underlying product emits by default.

    What I take from this

    • If "and" means "must publish at both locations", most currently deployed servers do not comply: 50 of 82 publish nothing usable at the RFC 8414 location, and a further 9 only publish it at a non-compliant path.
    • No server in this sample publishes only RFC 8414 metadata, so the suite's current behaviour (check openid-configuration when OpenID Connect is in use, otherwise oauth-authorization-server) matches deployed reality.
    • If the WG does want both to be published, I think the text would also need to require that the two documents are consistent. Otherwise the 13 servers above would satisfy it while handing clients two contradictory descriptions of the same authorization server.
    • Independently of how the "and" is resolved, it may be worth saying that a server which publishes a metadata document at either location must make sure it is accurate for the FAPI deployment. We could add a conformance test that fetches the "other" location and warns if it exists and differs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions