[ADF-4810] fix sso settings (#5108)

* fix sso settings

* fix test

* update-js-api

* update-js-api

* invert test order for some reason
This commit is contained in:
Eugenio Romano
2019-09-30 13:32:17 +01:00
committed by GitHub
parent c49e2dca7e
commit bcacd8b42e
6 changed files with 142 additions and 431 deletions

View File

@@ -128,6 +128,13 @@
<input id="logout-url" matInput placeholder="{{ 'CORE.HOST_SETTINGS.REDIRECT_LOGOUT'| translate }}"
name="redirectUriLogout" formControlName="redirectUriLogout">
</mat-form-field>
<mat-form-field class="adf-full-width" floatLabel="Public Urls">
<mat-label>{{ 'CORE.HOST_SETTINGS.PUBLIC_URLS'| translate }}</mat-label>
<input id="public-url" matInput placeholder="{{ 'CORE.HOST_SETTINGS.PUBLIC_URLS'| translate }}"
name="publicUrls" formControlName="publicUrls">
</mat-form-field>
</div>
</ng-container>
<mat-card-actions class="adf-actions">

View File

@@ -147,7 +147,8 @@ export class HostSettingsComponent implements OnInit {
scope: [oauth.scope, Validators.required],
secret: oauth.secret,
silentLogin: oauth.silentLogin,
implicitFlow: oauth.implicitFlow
implicitFlow: oauth.implicitFlow,
publicUrls: [oauth.publicUrls]
});
}
@@ -269,6 +270,10 @@ export class HostSettingsComponent implements OnInit {
return this.oauthConfig.get('redirectUri');
}
get publicUrls(): AbstractControl {
return this.oauthConfig.get('publicUrls');
}
get redirectUriLogout(): AbstractControl {
return this.oauthConfig.get('redirectUriLogout');
}