Skip to content

Commit 88ac2e7

Browse files
xingzhang-suseBinX-Suse
authored andcommitted
NVSHAS-10003: Reload page does not work on standalone NV page while a Rancher UI is opening
1 parent 53c2351 commit 88ac2e7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

admin/src/main/scala/com/neu/service/authentication/SuseAuthService.scala

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,11 @@ class SuseAuthService()(implicit
151151
val suseCookieOpt = ctx.request.cookies.find(_.name == suseCookieName)
152152
suseCookieOpt match {
153153
case Some(suseCookie) =>
154-
if (suseCookie.value.equals(AuthenticationManager.suseTokenMap.getOrElse(tokenId, ""))) {
154+
if (
155+
suseCookie.value.equals(
156+
AuthenticationManager.suseTokenMap.getOrElse(tokenId, "")
157+
) || !isRancherSSOUrl.contains("true")
158+
) {
155159
logger.info("Extend the token")
156160
performGetSelf(isOnNV, isRancherSSOUrl, suseCookieValue, tokenId)
157161
} else {

0 commit comments

Comments
 (0)