diff options
author | Frederick Muriuki Muriithi | 2024-08-05 12:08:51 -0500 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-08-05 12:08:51 -0500 |
commit | dcbe218914dcc56229b528d843f820793ce95a5e (patch) | |
tree | 551c3ce0f82fc0aa5bc8592bf0c3fe18dd15d483 /uploader | |
parent | 1812cef20155324deafc10388f47045bc12696ab (diff) | |
download | gn-uploader-dcbe218914dcc56229b528d843f820793ce95a5e.tar.gz |
Fix token revocation
Token revocation was failing due to missing hint.
Diffstat (limited to 'uploader')
-rw-r--r-- | uploader/oauth2/views.py | 3 |
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( |