added the text fields to Openidc defaults section
This commit is contained in:
parent
d26ecd00c0
commit
094fcb125c
1 changed files with 30 additions and 2 deletions
|
|
@ -20,12 +20,35 @@ class ProxyHost extends Model {
|
||||||
this.domain_names = [];
|
this.domain_names = [];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Default for openidc_allowed_users
|
||||||
|
if (typeof this.openidc_allowed_users === 'undefined') {
|
||||||
|
this.openidc_allowed_users = [];
|
||||||
|
}
|
||||||
|
|
||||||
// Default for meta
|
// Default for meta
|
||||||
if (typeof this.meta === 'undefined') {
|
if (typeof this.meta === 'undefined') {
|
||||||
this.meta = {};
|
this.meta = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Openidc defaults
|
||||||
|
if (typeof this.openidc_auth_method === 'undefined') {
|
||||||
|
this.openidc_auth_method = 'client_secret_post';
|
||||||
|
}
|
||||||
|
if (typeof this.openidc_redirect_uri === 'undefined') {
|
||||||
|
this.openidc_redirect_uri = '';
|
||||||
|
}
|
||||||
|
if (typeof this.openidc_discovery === 'undefined') {
|
||||||
|
this.openidc_discovery = '';
|
||||||
|
}
|
||||||
|
if (typeof this.openidc_client_id === 'undefined') {
|
||||||
|
this.openidc_client_id = '';
|
||||||
|
}
|
||||||
|
if (typeof this.openidc_client_secret === 'undefined') {
|
||||||
|
this.openidc_client_secret = '';
|
||||||
|
}
|
||||||
|
|
||||||
this.domain_names.sort();
|
this.domain_names.sort();
|
||||||
|
this.openidc_allowed_users.sort();
|
||||||
}
|
}
|
||||||
|
|
||||||
$beforeUpdate () {
|
$beforeUpdate () {
|
||||||
|
|
@ -35,6 +58,11 @@ class ProxyHost extends Model {
|
||||||
if (typeof this.domain_names !== 'undefined') {
|
if (typeof this.domain_names !== 'undefined') {
|
||||||
this.domain_names.sort();
|
this.domain_names.sort();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Sort openidc_allowed_users
|
||||||
|
if (typeof this.openidc_allowed_users !== 'undefined') {
|
||||||
|
this.openidc_allowed_users.sort();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static get name () {
|
static get name () {
|
||||||
|
|
@ -46,7 +74,7 @@ class ProxyHost extends Model {
|
||||||
}
|
}
|
||||||
|
|
||||||
static get jsonAttributes () {
|
static get jsonAttributes () {
|
||||||
return ['domain_names', 'meta', 'locations'];
|
return ['domain_names', 'meta', 'locations', 'openidc_allowed_users'];
|
||||||
}
|
}
|
||||||
|
|
||||||
static get relationMappings () {
|
static get relationMappings () {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue