~tsileo/microblog.pub

4e1bb330aa312ae98cd8ef4ad73ca89510278ce3 — Thomas Sileo 7 months ago 625f399
Fix OAuth introspection endpoint
1 files changed, 4 insertions(+), 0 deletions(-)

M app/indieauth.py
M app/indieauth.py => app/indieauth.py +4 -0
@@ 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,