From ffe0961b4aae82507a033e0586346cda60c026f5 Mon Sep 17 00:00:00 2001 From: lejianwen <84855512@qq.com> Date: Sun, 10 Aug 2025 15:46:29 +0800 Subject: [PATCH] feat: Oauth --- src/views/oauth/index.vue | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/src/views/oauth/index.vue b/src/views/oauth/index.vue index 7bab60f..1c11760 100644 --- a/src/views/oauth/index.vue +++ b/src/views/oauth/index.vue @@ -58,14 +58,18 @@ + v-model="formData.client_secret" + :type="formData.id ? 'password' : 'text'" + :show-password="!formData.id" + > - {{formData.redirect_url}} + {{ defaultRedirect() }} + + + + { - handleClipboard(formData.redirect_url, e) + handleClipboard(defaultRedirect(), e) } const listRes = reactive({ @@ -200,7 +205,7 @@ } const defaultRedirect = () => { - return `${app.setting.rustdeskConfig.api_server||window.location.origin}/api/oidc/callback` + return `${app.setting.rustdeskConfig.api_server || window.location.origin}/api/oidc/callback` } const toEdit = (row) => { @@ -211,7 +216,7 @@ formData.issuer = row.issuer formData.client_id = row.client_id formData.client_secret = row.client_secret - formData.redirect_url = row.redirect_url || defaultRedirect() + // formData.redirect_url = row.redirect_url || defaultRedirect() formData.scopes = row.scopes formData.auto_register = row.auto_register formData.pkce_enable = row.pkce_enable @@ -225,7 +230,7 @@ formData.issuer = '' formData.client_id = '' formData.client_secret = '' - formData.redirect_url = defaultRedirect() + // formData.redirect_url = defaultRedirect() formData.scopes = '' formData.auto_register = false formData.pkce_enable = false