diff --git a/client/pages/config/sso.vue b/client/pages/config/sso.vue index ab17472ff..97fca8eb4 100644 --- a/client/pages/config/sso.vue +++ b/client/pages/config/sso.vue @@ -19,22 +19,22 @@

Token URL 

- +

User Info URL 

- +

Client ID 

- +

Client Secret 

- +
@@ -42,10 +42,35 @@
- +

Create a new user on first login

+
+ +

The new user is allowed to download

+
+ +
+ +

The new user is allowed to update

+
+ +
+ +

The new user is allowed to delete

+
+ +
+ +

The new user is allowed to upload

+
+ +
+ +

The new user is allowed to access all libraries

+
+
Save
@@ -68,6 +93,11 @@ export default { permissions: { createNewUser: false, + download: false, + update: false, + delete: false, + upload: false, + accessAllLibraries: false }, updatingSSOSettings: false, @@ -90,22 +120,42 @@ export default { methods: { updateSSOIssuer(val) { this.oidc.issuer = val - return - this.updateSSOSettings({ - issuer: val - }) }, updateAuthorizationURL(val) { - return - this.updateSSOSettings({ - authorizationURL: val - }) + this.oidc.authorizationURL = val }, - updateCreateNewUser(val) { - return - this.updateSSOSettings({ - authorizationURL: val - }) + updateTokenURL(val) { + this.oidc.tokenURL = val + }, + updateUserInfoURL(val) { + this.oidc.userInfoURL = val + }, + updateClientID(val) { + this.oidc.clientID = val + }, + updateClientSecret(val) { + this.oidc.clientSecret = val + }, + updatePermissionCreateNewUser(val) { + this.permissions.createNewUser = val + }, + updatePermissionDownload(val) { + this.permissions.createNewUser = val + }, + updatePermissionUpdate(val) { + this.permissions.createNewUser = val + }, + updatePermissionDelete(val) { + this.permissions.createNewUser = val + }, + updatePermissionUpload(val) { + this.permissions.createNewUser = val + }, + updatePermissionAccessAllLibraries(val) { + this.permissions.createNewUser = val + }, + updatePermissionCreateNewUser(val) { + this.permissions.createNewUser = val }, saveSSOSettings(payload) { this.updatingSSOSettings = true