1
0
Fork 1
mirror of https://git.sr.ht/~tsileo/microblog.pub synced 2025-01-10 23:24:27 +00:00

Fix OAuth introspection endpoint

This commit is contained in:
Thomas Sileo 2023-02-03 08:55:31 +01:00
parent 625f399309
commit 4e1bb330aa

View file

@ -532,6 +532,10 @@ async def oauth_introspection_endpoint(
if not access_token:
return JSONResponse(content={"active": False})
is_token_valid, _ = await _check_access_token(db_session, token)
if not is_token_valid:
return JSONResponse(content={"active": False})
return JSONResponse(
content={
"active": True,