mirror of
https://github.com/argoproj/argo-cd
synced 2026-05-24 01:38:43 +00:00
fix: UI should automatically retrigger SSO login after token expiration (#6309)
Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com>
This commit is contained in:
parent
857d448a5c
commit
ffb22ff1ff
1 changed files with 2 additions and 2 deletions
|
|
@ -57,8 +57,8 @@ const versionLoader = services.version.version();
|
|||
|
||||
async function isExpiredSSO() {
|
||||
try {
|
||||
const {loggedIn, iss} = await services.users.get();
|
||||
if (loggedIn && iss !== 'argocd') {
|
||||
const {iss} = await services.users.get();
|
||||
if (iss && iss !== 'argocd') {
|
||||
const authSettings = await services.authService.settings();
|
||||
return ((authSettings.dexConfig && authSettings.dexConfig.connectors) || []).length > 0 || authSettings.oidcConfig;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue