Fix token introspection link (should be 401)
This commit is contained in:
parent
2fe7536c53
commit
b96bfa870a
2 changed files with 3 additions and 2 deletions
|
@ -281,9 +281,10 @@ async def get_introspect(
|
|||
token: Annotated[OAuth2Token, Depends(get_token)],
|
||||
) -> JSONResponse:
|
||||
if (
|
||||
response := await provider.get(
|
||||
response := await provider.post(
|
||||
provider.server_metadata["introspection_endpoint"],
|
||||
token=token,
|
||||
data={"token": token["access_token"]},
|
||||
)
|
||||
).is_success:
|
||||
return response.json()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue