Skip to content

Commit

Permalink
(HP-1699): add header to revoke_token
Browse files Browse the repository at this point in the history
  • Loading branch information
george42-ctds committed Sep 18, 2024
1 parent 0e76a2d commit d74a2e2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion wts/blueprints/oauth2.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ def logout_oauth():
client = get_oauth_client(idp="default")

try:
client.session.revoke_token(url, token)
client.session.revoke_token(
url, token, headers={"User-Agent": "Gen3WTS / 0.4.3"}
)
except APIError as e:
msg = "could not log out, failed to revoke token: {}".format(e.message)
return msg, 400
Expand Down

0 comments on commit d74a2e2

Please sign in to comment.