[AAE-8639] Discovery OpenId - Load discovery and pass info to jsapi (#7632)

* Load discovery and pass info to jsapi

* fix the roles empty scenario tests

* Make lint happier

* Rename the initApi method

* Add secret field

Co-authored-by: arditdomi <ardit.domi@hyland.com>
This commit is contained in:
Maurizio Vitale
2022-05-13 19:03:06 +01:00
committed by GitHub
parent 6fb1bda6a9
commit cec9297e14
10 changed files with 145 additions and 21 deletions

View File

@@ -103,6 +103,15 @@
</mat-error>
</mat-form-field>
<mat-form-field class="adf-full-width">
<mat-label>{{ 'CORE.HOST_SETTINGS.SECRET'| translate }}</mat-label>
<input matInput name="{{ 'CORE.HOST_SETTINGS.SECRET'| translate }}"
formControlName="secret" placeholder="{{ 'CORE.HOST_SETTINGS.SECRET'| translate }}">
<mat-error *ngIf="secret.hasError('required')">
{{ 'CORE.HOST_SETTINGS.REQUIRED'| translate }}
</mat-error>
</mat-form-field>
<label for="silentLogin">{{ 'CORE.HOST_SETTINGS.SILENT'| translate }}</label>
<mat-slide-toggle class="adf-full-width" name="silentLogin" [color]="'primary'"
formControlName="silentLogin">

View File

@@ -259,8 +259,8 @@ export class HostSettingsComponent implements OnInit {
return this.oauthConfig.get('scope') as FormControl;
}
get secretId(): FormControl {
return this.oauthConfig.get('secretId') as FormControl;
get secret(): FormControl {
return this.oauthConfig.get('secret') as FormControl;
}
get implicitFlow(): FormControl {