Expose uriLogout in the host setting form page (#3517)

This commit is contained in:
Maurizio Vitale
2018-06-27 09:47:10 +01:00
committed by Eugenio Romano
parent 2759196cde
commit 70e23bd3eb
3 changed files with 12 additions and 0 deletions

View File

@@ -133,6 +133,7 @@
"APPLY": "APPLY", "APPLY": "APPLY",
"NOT_VALID": "http(s)://host|ip:port(/path) not recognized, try a different URL.", "NOT_VALID": "http(s)://host|ip:port(/path) not recognized, try a different URL.",
"REDIRECT": "Redirect Uri", "REDIRECT": "Redirect Uri",
"REDIRECT_LOGOUT": "Redirect Uri Logout",
"SILENT": "Silent Login", "SILENT": "Silent Login",
"SCOPE": "Scope", "SCOPE": "Scope",
"CLIENT": "ClientId" "CLIENT": "ClientId"

View File

@@ -106,6 +106,12 @@
{{ 'CORE.HOST_SETTINGS.REQUIRED'| translate }} {{ 'CORE.HOST_SETTINGS.REQUIRED'| translate }}
</mat-error> </mat-error>
</mat-form-field> </mat-form-field>
<mat-form-field class="full-width" floatLabel="Redirect Uri Logout">
<mat-label>{{ 'CORE.HOST_SETTINGS.REDIRECT_LOGOUT'| translate }}</mat-label>
<input matInput placeholder="{{ 'CORE.HOST_SETTINGS.REDIRECT_LOGOUT'| translate }}"
name="redirectUriLogout" formControlName="redirectUriLogout">
</mat-form-field>
</div> </div>
</ng-container> </ng-container>
<mat-card-actions class="adf-actions"> <mat-card-actions class="adf-actions">

View File

@@ -140,6 +140,7 @@ export class HostSettingsComponent implements OnInit {
host: [oauth.host, [Validators.required, Validators.pattern(this.HOST_REGEX)]], host: [oauth.host, [Validators.required, Validators.pattern(this.HOST_REGEX)]],
clientId: [oauth.clientId, Validators.required], clientId: [oauth.clientId, Validators.required],
redirectUri: [oauth.redirectUri, Validators.required], redirectUri: [oauth.redirectUri, Validators.required],
redirectUriLogout: [oauth.redirectUriLogout],
scope: [oauth.scope, Validators.required], scope: [oauth.scope, Validators.required],
secret: oauth.secret, secret: oauth.secret,
silentLogin: oauth.silentLogin, silentLogin: oauth.silentLogin,
@@ -250,6 +251,10 @@ export class HostSettingsComponent implements OnInit {
return this.oauthConfig.get('redirectUri'); return this.oauthConfig.get('redirectUri');
} }
get redirectUriLogout(): AbstractControl {
return this.oauthConfig.get('redirectUriLogout');
}
get oauthConfig(): AbstractControl { get oauthConfig(): AbstractControl {
return this.form.get('oauthConfig'); return this.form.get('oauthConfig');
} }