Skip to content

Commit 55702ab

Browse files
authored
Merge pull request #7192 from aldbr/v8.1_FIX_createtoken
[8.1] fix: replace crate_access_token with create_token
2 parents e20e0f1 + cf55e37 commit 55702ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/DIRAC/FrameworkSystem/Service/ProxyManagerHandler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ def export_exchangeProxyForToken(self):
414414
try:
415415
from diracx.routers.auth import ( # pylint: disable=import-error
416416
AuthSettings,
417-
create_access_token,
417+
create_token,
418418
TokenResponse,
419419
) # pylint: disable=import-error
420420

@@ -438,7 +438,7 @@ def export_exchangeProxyForToken(self):
438438
}
439439
return S_OK(
440440
TokenResponse(
441-
access_token=create_access_token(payload, authSettings),
441+
access_token=create_token(payload, authSettings),
442442
expires_in=authSettings.access_token_expire_minutes * 60,
443443
state="None",
444444
).dict()

0 commit comments

Comments
 (0)