DiscoverOAuth returns the endpoints from the first candidate serving a valid.
func DiscoverOAuth(ctx context.Context, apiURL string) (*OAuthMetadata, error)DiscoverOAuth returns the endpoints from the first candidate serving a valid RFC 8414 metadata document. A transient failure against any candidate is reported in preference to errNoOAuthMetadata so callers do not mistake an outage for a legacy backend.