Skip to content

Commit 3e55548

Browse files
committed
fix: fixed bugs introduced in earlier releases
1 parent b793732 commit 3e55548

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/DIRAC/FrameworkSystem/Client/TokenManagerClient.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def getToken(
5757
idpObj = result["Value"]
5858

5959
# Search for an existing token in tokensCache
60-
cachedKey = getCachedKey(idpObj.name, username, userGroup, scope, audience)
60+
cachedKey = getCachedKey(idpObj, username, userGroup, scope, audience)
6161
result = getCachedToken(self.__tokensCache, cachedKey, requiredTimeLeft)
6262
if result["OK"]:
6363
# A valid token has been found and is returned

src/DIRAC/FrameworkSystem/Service/TokenManagerHandler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def export_getToken(
213213
idpObj = result["Value"]
214214

215215
# Search for an existing token in tokensCache
216-
cachedKey = getCachedKey(idpObj.name, username, userGroup, scope, audience)
216+
cachedKey = getCachedKey(idpObj, username, userGroup, scope, audience)
217217
result = getCachedToken(self.__tokensCache, cachedKey, requiredTimeLeft)
218218
if result["OK"]:
219219
# A valid token has been found and is returned

0 commit comments

Comments
 (0)