How to use the @bentley/ui-framework.UiFramework.oidcClient function in @bentley/ui-framework

To help you get started, we’ve selected a few @bentley/ui-framework 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 imodeljs / imodeljs / test-apps / ui-test-app / src / frontend / index.tsx View on Github external
constructor(props: any) {
    super(props);

    AppUi.initialize();
    this._initializeSignin(!!UiFramework.oidcClient && UiFramework.oidcClient.isAuthorized); // tslint:disable-line:no-floating-promises
  }
github imodeljs / imodeljs / test-apps / ui-test-app / src / frontend / appui / frontstages / IModelOpenFrontstage.tsx View on Github external
constructor(info: ConfigurableCreateInfo, options: any) {
    super(info, options);

    if (UiFramework.oidcClient && UiFramework.oidcClient.isAuthorized)
      this.reactElement = ;
    else
      this.reactElement = null;
  }
github imodeljs / imodeljs / test-apps / ui-test-app / src / frontend / index.tsx View on Github external
public componentDidMount() {
    UiFramework.backstageManager.itemsManager.add(this._backstageItemProvider.backstageItems);
    SyncUiEventDispatcher.onSyncUiEvent.addListener(this.handleSyncUiEvent);
    if (UiFramework.oidcClient)
      UiFramework.oidcClient.onUserStateChanged.addListener(this._onUserStateChanged);
  }
github imodeljs / imodeljs / test-apps / ui-test-app / src / frontend / appui / frontstages / SignInFrontstage.tsx View on Github external
constructor(info: ConfigurableCreateInfo, options: any) {
    super(info, options);

    this.reactElement = ;
  }
github imodeljs / imodeljs / test-apps / ui-test-app / src / frontend / appui / frontstages / IModelIndexFrontstage.tsx View on Github external
constructor(info: ConfigurableCreateInfo, options: any) {
    super(info, options);

    const iModelConnection = UiFramework.getIModelConnection();
    if (iModelConnection && UiFramework.oidcClient && UiFramework.oidcClient.isAuthorized)
      this.reactElement = ;
    else
      this.reactElement = null;
  }