Skip to content

Commit cf55e37

Browse files
committed
fix: replace crate_access_token with create_token
1 parent 262eab1 commit cf55e37

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)