Skip to content

Commit

Permalink
fix: getToken returns the token dictionary
Browse files Browse the repository at this point in the history
  • Loading branch information
atsareg committed Nov 18, 2024
1 parent 326e6ab commit 0fb2fb2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/DIRAC/FrameworkSystem/Service/TokenManagerHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,9 @@ def export_getToken(

# Get the client token with requested scope and audience
result = idpObj.fetchToken(grant_type="client_credentials", scope=scope, audience=audience)
# DEncode can not encode OAuth2Token object
if result["OK"]:
result["Value"] = dict(result["Value"])

return result

Expand Down

0 comments on commit 0fb2fb2

Please sign in to comment.