summaryrefslogtreecommitdiff
path: root/issues/invalid-token-error.gmi
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2023-08-31 08:04:59 +0300
committerFrederick Muriuki Muriithi2023-08-31 08:05:23 +0300
commit7d6d2e4f277132dce4c751f6057764c72ac9db0a (patch)
tree00bd026c66a45386ef89f9f6db2857690b7777e3 /issues/invalid-token-error.gmi
parente16bc2a302bf950dfdce76d8c10447b68aca5564 (diff)
downloadgn-gemtext-7d6d2e4f277132dce4c751f6057764c72ac9db0a.tar.gz
Update with fixes done, and close the issue.
Diffstat (limited to 'issues/invalid-token-error.gmi')
-rw-r--r--issues/invalid-token-error.gmi15
1 files changed, 12 insertions, 3 deletions
diff --git a/issues/invalid-token-error.gmi b/issues/invalid-token-error.gmi
index 8565726..d1a1f2e 100644
--- a/issues/invalid-token-error.gmi
+++ b/issues/invalid-token-error.gmi
@@ -5,7 +5,7 @@
* assigned: fredm, zsloan
* type: bug
* priority: high
-* status: unresolved
+* status: closed, completed, resolved
* keywords: authentication
## Description
@@ -20,10 +20,13 @@ After fully updating the code the error might be manifesting differently. I now
UNAUTHORIZED: The access token provided is expired, revoked, malformed, or invalid for other reasons.
```
-This can be tested by adding the following after line 48 in gn3/auth/authentication/oauth2/server.py (which makes the token quickly expire):
+This can be tested by adding the following configuration in the auth(entic|oris)ation server:
```
-"expires_in": (60)
+OAUTH2_TOKEN_EXPIRES_IN = {
+ "authorization_code": 60
+}
```
+which sets up the tokens generated henceforth to expire in 60 seconds.
* Full trace:
```
@@ -61,3 +64,9 @@ Traceback (most recent call last):
raise InvalidTokenError()
authlib.integrations.base_client.errors.InvalidTokenError: token_invalid:
```
+
+## FIXES
+
+Should be fixed with the following commit(s)
+
+=> https://github.com/genenetwork/genenetwork2/commit/d818eaf1957c06405faf712a2be8526a7f63581b