From 96e4072c34585b7c06441d64ac78df27b44e2b56 Mon Sep 17 00:00:00 2001 From: Chenyang Gao Date: Wed, 12 Apr 2023 11:05:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0offline=20access=20scope?= =?UTF-8?q?=E5=8F=82=E6=95=B0=EF=BC=8C=E5=B9=B6=E9=85=8D=E5=90=88=E5=BC=95?= =?UTF-8?q?=E7=94=A8=E6=9B=B4=E6=96=B0=E7=9A=84dex=EF=BC=8C=E4=BB=A5?= =?UTF-8?q?=E5=AE=9E=E7=8E=B0=E7=99=BB=E5=BD=95=E7=8A=B6=E6=80=81=E5=A4=B1?= =?UTF-8?q?=E6=95=88=E5=90=8E=E5=BC=BA=E5=88=B6=E7=94=A8=E6=88=B7=E5=86=8D?= =?UTF-8?q?=E6=AC=A1=E5=81=9C=E7=95=99=E5=9C=A8=E4=B8=89=E6=96=B9=E6=8E=88?= =?UTF-8?q?=E6=9D=83=E7=95=8C=E9=9D=A2=E3=80=82=20#10?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Chenyang Gao --- controller/cockpit_syscfg.go | 2 +- dex | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/controller/cockpit_syscfg.go b/controller/cockpit_syscfg.go index 4ccbd8d..4b9123b 100644 --- a/controller/cockpit_syscfg.go +++ b/controller/cockpit_syscfg.go @@ -126,7 +126,7 @@ func (s *SysConfig) toSrvConfig() (*Config, error) { Issuer: "https://" + s.ServerURL + "/issuer", ClientID: "MirageServer", ClientSecret: s.DexSecret, - Scope: []string{"openid", "profile", "email", "groups", "name"}, + Scope: []string{"offline_access", "openid", "profile", "email", "groups", "name"}, ExtraParams: map[string]string{"prompt": "login"}, } diff --git a/dex b/dex index f2f9580..18ee5fc 160000 --- a/dex +++ b/dex @@ -1 +1 @@ -Subproject commit f2f9580889e66392ef7df437a9e81167974c6447 +Subproject commit 18ee5fcf600dcd39b14676296c67f905a570aa9b