aboutsummaryrefslogtreecommitdiff
path: root/uploader/oauth2
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-08-05 12:08:51 -0500
committerFrederick Muriuki Muriithi2024-08-05 12:08:51 -0500
commitdcbe218914dcc56229b528d843f820793ce95a5e (patch)
tree551c3ce0f82fc0aa5bc8592bf0c3fe18dd15d483 /uploader/oauth2
parent1812cef20155324deafc10388f47045bc12696ab (diff)
downloadgn-uploader-dcbe218914dcc56229b528d843f820793ce95a5e.tar.gz
Fix token revocation
Token revocation was failing due to missing hint.
Diffstat (limited to 'uploader/oauth2')
-rw-r--r--uploader/oauth2/views.py3
1 files changed, 2 insertions, 1 deletions
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(