How to use the @openid/appauth.AuthorizationServiceConfiguration.fetchFromIssuer function in @openid/appauth

To help you get started, we’ve selected a few @openid/appauth examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pingidentity / angular-spa-sample / src / app / authorization.service.ts View on Github external
private async fetchServiceConfiguration(configuration: AuthorizationConfig) {
    const response = await AuthorizationServiceConfiguration.fetchFromIssuer(configuration.issuer_uri, this.requestor);
    this._serviceConfigs.next(response);
  }
github imodeljs / imodeljs / core / clients-backend / src / oidc / OidcDeviceClient.ts View on Github external
public async initialize(requestContext: ClientRequestContext): Promise {
    const url = await this.getUrl(requestContext);
    this._configuration = await AuthorizationServiceConfiguration.fetchFromIssuer(
      url,
      this._nodeRequestor,
    );
    Logger.logTrace(loggerCategory, "Initialized service configuration", () => ({ configuration: this._configuration }));
  }