Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
JSSRC= \
Utils.js \
+ Schema.js \
Toolkit.js \
Logo.js \
Parser.js \
--- /dev/null
+Ext.define('Proxmox.Schema', { // a singleton
+ singleton: true,
+
+ authDomains: {
+ pam: {
+ name: 'Linux PAM',
+ add: false,
+ edit: false,
+ pwchange: true,
+ },
+ openid: {
+ name: gettext('OpenID Connect Server'),
+ ipanel: 'pmxAuthOpenIDPanel',
+ add: true,
+ edit: true,
+ tfa: false,
+ pwchange: false,
+ iconCls: 'pmx-itype-icon-openid-logo',
+ },
+ },
+ // to add or change existing for product specific ones
+ overrideAuthDomains: function(extra) {
+ for (const [key, value] of Object.entries(extra)) {
+ Proxmox.Utils.authSchema[key] = value;
+ }
+ },
+});
return icon;
},
- authSchema: {
- pam: {
- name: 'Linux PAM',
- add: false,
- edit: false,
- pwchange: true,
- },
- openid: {
- name: gettext('OpenID Connect Server'),
- ipanel: 'pmxAuthOpenIDPanel',
- add: true,
- edit: true,
- tfa: false,
- pwchange: false,
- iconCls: 'pmx-itype-icon-openid-logo',
- },
- },
-
- // to add or change existing for product specific ones
- overrideAuthSchema: function(extra) {
- for (const [key, value] of Object.entries(extra)) {
- Proxmox.Utils.authSchema[key] = value;
- }
- },
},
singleton: true,