diff --git a/src/pages/OauthClientsPage.vue b/src/pages/OauthClientsPage.vue index d5588cf..068f958 100644 --- a/src/pages/OauthClientsPage.vue +++ b/src/pages/OauthClientsPage.vue @@ -11,11 +11,11 @@ - + - {{ scope.name }} - 无 + {{ field }} + 无 diff --git a/src/pages/OauthConsentPage.vue b/src/pages/OauthConsentPage.vue index 3d103da..e2b30ab 100644 --- a/src/pages/OauthConsentPage.vue +++ b/src/pages/OauthConsentPage.vue @@ -1,73 +1,93 @@ - + + OAuth2 安全授权 - - 授权确认 - {{ clientName || '第三方应用' }} 请求访问你的账号信息 + + 授权 {{ clientName || '第三方应用' }} + 该应用将按服务端配置读取你的用户信息 - 请求 Scope + 将返回给应用的 UserInfo 字段 - {{ scope }} - 无 + {{ field }} + 仅返回 `sub` - - 可能返回的用户字段 - - - {{ item.display_name || item.name }} - - 仅返回标准 subject 标识 + + 字段映射规则 + + + {{ item.from }} + → + {{ item.to }} + - 拒绝 - 同意并继续 + 拒绝 + 同意并继续 diff --git a/src/router/index.ts b/src/router/index.ts index a16d2ff..7a47716 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -13,6 +13,7 @@ const routes: RouteRecordRaw[] = [ { path: '/oauth-consent', component: () => import('@/pages/OauthConsentPage.vue'), + meta: { guest: true }, }, { path: '/', @@ -71,6 +72,9 @@ router.beforeEach(async (to) => { if (to.path === '/login' && returnTo) { return true } + if (to.path === '/oauth-consent') { + return true + } const forcePasswordChange = Boolean((authStore.user as any)?.force_password_change) if (forcePasswordChange) { if (to.path === '/login') {
{{ clientName || '第三方应用' }} 请求访问你的账号信息
该应用将按服务端配置读取你的用户信息