File

auth-configuration/sso-configuration/sso-configuration.component.ts

Implements

OnInit

Metadata

Index

Properties
Methods

Constructor

constructor(ssoConfigurationService: SsoConfigurationService, applicationService: ApplicationService, userGroupService: UserGroupService, inventoryRoleService: InventoryRoleService, alertService: AlertService, modalService: ModalService, loginService: LoginService, appStateService: AppStateService, tenantUiService: TenantUiService)
Parameters :
Name Type Optional
ssoConfigurationService SsoConfigurationService No
applicationService ApplicationService No
userGroupService UserGroupService No
inventoryRoleService InventoryRoleService No
alertService AlertService No
modalService ModalService No
loginService LoginService No
appStateService AppStateService No
tenantUiService TenantUiService No

Methods

loadSsoConfiguration
loadSsoConfiguration()
Returns : void
ngOnDestroy
ngOnDestroy()
Returns : void
ngOnInit
ngOnInit()
Returns : void
Async save
save(ssoConfiguration)
Parameters :
Name Optional
ssoConfiguration No
Returns : any

Properties

apps
Type : IApplication[]
groups
Type : IUserGroup[]
inventoryRoles
Type : IIdentified[]
reload
Type : EventEmitter<void>
Default value : new EventEmitter()
reloading$
Type : BehaviorSubject<boolean>
Default value : new BehaviorSubject(false)
saveSubject
Type : Subject<void>
Default value : new Subject()
ssoConfiguration
Type : SsoConfiguration
ssoConfigurationForm
Type : NgForm
Decorators :
@ViewChild('ssoConfigurationForm')
templateType
Default value : TemplateType
templateTypeConfig
Default value : templateTypeConfig
<c8y-title>{{ 'Single sign-on' | translate }}</c8y-title>
<c8y-breadcrumb>
  <c8y-breadcrumb-item
    [icon]="'cog'"
    [label]="'Settings' | translate"
  ></c8y-breadcrumb-item>
  <c8y-breadcrumb-item
    [icon]="'cog'"
    [label]="'Single sign-on' | translate"
  ></c8y-breadcrumb-item>
</c8y-breadcrumb>

<c8y-action-bar-item [placement]="'right'">
  <button
    class="btn btn-link"
    title="{{ 'Reload' | translate }}"
    type="button"
    (click)="loadSsoConfiguration()"
  >
    <i
      c8yIcon="refresh"
      [ngClass]="{ 'icon-spin': reloading$ | async }"
    ></i>
    {{ 'Reload' | translate }}
  </button>
</c8y-action-bar-item>

<c8y-action-bar-item
  [placement]="'left'"
  itemClass="navbar-form hidden-xs"
>
  <div
    class="form-group"
    title="{{ 'Template' | translate }}"
  >
    <label
      class="control-label"
      for="template"
    >
      {{ 'Template' | translate }}
    </label>
    <div class="c8y-select-wrapper">
      <select
        class="form-control"
        id="template"
        name="template"
        *ngIf="ssoConfiguration"
        [(ngModel)]="ssoConfiguration.template"
      >
        <option
          *ngFor="let templateType of templateTypeConfig | keyvalue"
          [ngValue]="templateType.key"
        >
          {{ templateType.value.label | translate }}
        </option>
      </select>
      <span></span>
    </div>
  </div>
</c8y-action-bar-item>

<div class="row">
  <div class="col-lg-12 col-lg-max">
    <form
      class="card card--fullpage"
      #ssoConfigurationForm="ngForm"
      novalidate
    >
      <div class="card-header separator">
        <div class="card-title">
          {{ 'Single sign-on' | translate }}
        </div>
      </div>

      <div class="inner-scroll">
        <div
          class="card-block p-0"
          *ngIf="ssoConfiguration"
        >
          <c8y-custom-template
            *ngIf="ssoConfiguration.template === templateType.CUSTOM"
            [ssoConfiguration]="ssoConfiguration"
            [ssoConfigurationChangeTrigger]="saveSubject.asObservable()"
            (ssoConfigurationChange)="save($event)"
            [apps]="apps"
            [groups]="groups"
            [inventoryRoles]="inventoryRoles"
          ></c8y-custom-template>

          <c8y-aad-template
            *ngIf="ssoConfiguration.template === templateType.AZURE"
            [ssoConfiguration]="ssoConfiguration"
            [ssoConfigurationChangeTrigger]="saveSubject.asObservable()"
            (ssoConfigurationChange)="save($event)"
            [apps]="apps"
            [groups]="groups"
            [inventoryRoles]="inventoryRoles"
          ></c8y-aad-template>

          <c8y-key-cloak-template
            *ngIf="ssoConfiguration.template === templateType.KEYCLOAK"
            [ssoConfiguration]="ssoConfiguration"
            [ssoConfigurationChangeTrigger]="saveSubject.asObservable()"
            (ssoConfigurationChange)="save($event)"
            [apps]="apps"
            [groups]="groups"
            [inventoryRoles]="inventoryRoles"
          ></c8y-key-cloak-template>
        </div>
      </div>
      <div class="card-footer separator">
        <button
          class="btn btn-primary"
          title="{{ 'Save' | translate }}"
          type="submit"
          (click)="saveSubject.next()"
          [disabled]="!ssoConfigurationForm.form.valid || ssoConfigurationForm.form.pristine"
        >
          {{ 'Save' | translate }}
        </button>
      </div>
    </form>
  </div>
</div>

results matching ""

    No results matching ""