Derives the URL to openid-configuration from url that either points at the
root URL of the provider or directly at .well-known/openid-configuration
Parameters
url: string|URL
an URL to the Open ID Connect provider
Returns URL
an URL to the .well-known/openid-configuration of the Open ID Connect provider
Example
if (url.endsWith('.well-known/openid-configuration')) { // `${url}` will be used to resolve the provider's configuration } else { // `${url}/.well-known/openid-configuration` will be used to resolve the provider's configuration }
Derives the URL to openid-configuration from url that either points at the root URL of the provider or directly at
.well-known/openid-configuration