Add database columns to store OpenID Connect information for Proxy Hosts.

This commit is contained in:
Subv authored and Jamie Curnow committed 2021-09-09 08:12:19 +10:00
1 parent 8e10b7da37
commit 53792a5cf7
6 files changed
+148 -7

No files matched your search

+1 -1
View File
@@ -278,7 +278,7 @@
<div class="col-sm-12 col-md-12">
<div class="form-group">
<label class="custom-switch">
<input type="checkbox" class="custom-switch-input" name="openidc_enabled" value="1<%- openidc_enabled ? ' checked' : '' %>">
<input type="checkbox" class="custom-switch-input" name="openidc_enabled" value="1"<%- openidc_enabled ? ' checked' : '' %>>
<span class="custom-switch-indicator"></span>
<span class="custom-switch-description">Use OpenID Connect authentication <span class="form-required">*</span></span>
</label>
+1 -1
View File
@@ -132,7 +132,6 @@ module.exports = Mn.View.extend({
},
'change @ui.openidc_enabled': function () {
console.log('Changing');
let checked = this.ui.openidc_enabled.prop('checked');
if (checked) {
@@ -367,6 +366,7 @@ module.exports = Mn.View.extend({
// OpenID Connect
this.ui.openidc.hide().find('input').prop('required', false);
this.ui.openidc_enabled.trigger('change');
},
initialize: function (options) {
+5 -5
View File
@@ -23,11 +23,11 @@ const model = Backbone.Model.extend({
http2_support: false,
advanced_config: '',
openidc_enabled: false,
openidc_redirect_uri: null,
openidc_discovery: null,
openidc_auth_method: null,
openidc_client_id: null,
openidc_client_secret: null,
openidc_redirect_uri: '',
openidc_discovery: '',
openidc_auth_method: 'client_secret_post',
openidc_client_id: '',
openidc_client_secret: '',
enabled: true,
meta: {},
// The following are expansions: