Validates that the given clientMetadataUrl is a valid HTTPS URL with a non-root pathname.
No-op when url is undefined or empty (providers that do not use URL-based client IDs
are unaffected). When the value is defined but invalid, throws an OAuthError
with code OAuthErrorCode.InvalidClientMetadata.
OAuthClientProvider implementations that accept a clientMetadataUrl should
call this in their constructors for early validation.
Parameters
url: string|undefined
The clientMetadataUrl value to validate (from OAuthClientProvider.clientMetadataUrl)
Returns void
Throws
When url is defined but is not a valid HTTPS URL with a non-root pathname
Validates that the given
clientMetadataUrlis a valid HTTPS URL with a non-root pathname.No-op when
urlisundefinedor empty (providers that do not use URL-based client IDs are unaffected). When the value is defined but invalid, throws anOAuthErrorwith codeOAuthErrorCode.InvalidClientMetadata.OAuthClientProviderimplementations that accept aclientMetadataUrlshould call this in their constructors for early validation.