@twinfinity/authentication
    Preparing search index...

    Function deriveOpenIdProviderConfigurationUrl

    • 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

      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
      }