From dcbe218914dcc56229b528d843f820793ce95a5e Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Mon, 5 Aug 2024 12:08:51 -0500 Subject: Fix token revocation Token revocation was failing due to missing hint. --- uploader/oauth2/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'uploader') diff --git a/uploader/oauth2/views.py b/uploader/oauth2/views.py index 6e1ce29..61037f3 100644 --- a/uploader/oauth2/views.py +++ b/uploader/oauth2/views.py @@ -124,7 +124,8 @@ def logout(): lambda _tok: mrequests.post( urljoin(authserver_uri(), "auth/revoke"), json={ - "token": _tok, + "token": _tok["refresh_token"], + "token_type_hint": "refresh_token", "client_id": oauth2_clientid(), "client_secret": oauth2_clientsecret() })).either( -- cgit v1.2.3