Skip to content

Commit

Permalink
fix: replace crate_access_token with create_token
Browse files Browse the repository at this point in the history
  • Loading branch information
aldbr committed Sep 6, 2023
1 parent 262eab1 commit cf55e37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DIRAC/FrameworkSystem/Service/ProxyManagerHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ def export_exchangeProxyForToken(self):
try:
from diracx.routers.auth import ( # pylint: disable=import-error
AuthSettings,
create_access_token,
create_token,
TokenResponse,
) # pylint: disable=import-error

Expand All @@ -438,7 +438,7 @@ def export_exchangeProxyForToken(self):
}
return S_OK(
TokenResponse(
access_token=create_access_token(payload, authSettings),
access_token=create_token(payload, authSettings),
expires_in=authSettings.access_token_expire_minutes * 60,
state="None",
).dict()
Expand Down

0 comments on commit cf55e37

Please sign in to comment.