ClientIdMetadataDocumentAddresses Enum
Which addresses a client's metadata document may be fetched from, as DocumentAddresses sets it.
public enum ClientIdMetadataDocumentAddressesFields
PublicOnly 0
No special-use address, loopback included: a document is fetched only from a public address.
AllowLoopback 1
A loopback address as well, and only for a tenant whose issuer is itself on a loopback address; a tenant with any other issuer is held to PublicOnly. So a provider and a client running on one development machine can try the feature.
Remarks
Section 10.7 of the draft: "Authorization servers deployed for development or testing purposes MAY relax this
restriction to allow fetching from loopback addresses when the authorization server itself is also running on a
loopback address and the resolved address matches the same loopback interface. Authorization servers MUST NOT
apply this exception in production deployments". So the exception is decided for each tenant at each lookup: it
applies only where the tenant's issuer, as written, names localhost, an address of 127.0.0.0/8 or
::1, and a client identifier naming a loopback host at any other tenant is refused with a warning that
says why. A host whose environment is Production (IHostEnvironment.IsProduction()) does not start with this
set, and fetches no document from loopback should the setting change after it started; one registering no
IHostEnvironment, built without the generic host, is not taken for Production, and is held by the issuer
rule alone. Nor does a host that sends outbound requests through
OutboundProxy, which would reach the proxy's own
loopback interface. A machine has one loopback interface, which carries all of these
addresses, so a document is reached at any of them whichever one the issuer names.
The document's URL may then name localhost or a loopback literal, or a name resolving to loopback
addresses alone; every other private or special-use address is still refused.
BlockPrivateNetworks stays on, and
AllowedDestinations still never admits a client
identifier.
Remarks
Draft-ietf-oauth-client-id-metadata-document section 10.7: the server "MUST NOT fetch a Client ID Metadata Document URL or any URLs contained within a Client ID Metadata Document that resolve to special-use IP addresses as defined in [RFC6890]". Every member keeps that rule for the URLs a document contains; a member other than PublicOnly relaxes it for the document's own URL alone.