增加offline access scope参数,并配合引用更新的dex,以实现登录状态失效后强制用户再次停留在三方授权界面。 #10

Signed-off-by: Chenyang Gao <gps949@outlook.com>
This commit is contained in:
Chenyang Gao
2023-04-12 11:05:40 +08:00
parent e4644bdf28
commit 96e4072c34
2 changed files with 2 additions and 2 deletions

View File

@@ -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"},
}

2
dex

Submodule dex updated: f2f9580889...18ee5fcf60