File

auth-configuration/auth-configuration.component.ts

Implements

OnInit

Metadata

Index

Properties
Methods

Constructor

constructor(authConfigurationService: AuthConfigurationService, tenantLoginOptionsService: TenantLoginOptionsService, modalService: ModalService, loginService: LoginService, alertService: AlertService)
Parameters :
Name Type Optional
authConfigurationService AuthConfigurationService No
tenantLoginOptionsService TenantLoginOptionsService No
modalService ModalService No
loginService LoginService No
alertService AlertService No

Methods

loadAuthConfig
loadAuthConfig()
Returns : void
ngOnDestroy
ngOnDestroy()
Returns : void
ngOnInit
ngOnInit()
Returns : void
Async save
save()
Returns : any

Properties

authConfiguration
Type : AuthConfiguration
reload
Type : EventEmitter<void>
Default value : new EventEmitter()
reloading$
Type : BehaviorSubject<boolean>
Default value : new BehaviorSubject(false)
<c8y-title>{{ 'Authentication' | translate }}</c8y-title>

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

<c8y-help src="/users-guide/administration/#authentication"></c8y-help>

<form role="form" class="card card--fullpage" #authConfigurationForm="ngForm" novalidate>
  <div class="card-header separator">
    <div class="card-title">
      {{ 'Authentication' | translate }}
    </div>
  </div>
  <div class="inner-scroll" *ngIf="authConfiguration">
    <c8y-login-settings [authConfiguration]="authConfiguration"></c8y-login-settings>
    <c8y-basic-auth-settings [authConfiguration]="authConfiguration"></c8y-basic-auth-settings>
    <c8y-session-configuration [authConfiguration]="authConfiguration"></c8y-session-configuration>
    <c8y-auth-tfa [authConfiguration]="authConfiguration"></c8y-auth-tfa>
  </div>
  <div class="card-footer separator">
    <button
      title="{{ 'Save' | translate }}"
      class="btn btn-primary"
      (click)="save()"
      [disabled]="!authConfigurationForm.form.valid || authConfigurationForm.form.pristine"
    >
      {{ 'Save' | translate }}
    </button>
  </div>
</form>

results matching ""

    No results matching ""