fix(oauth2): introspect_token requires token (#35647)
https://datatracker.ietf.org/doc/html/rfc7662#section-2 Signed-off-by: Akhil Narang <me@akhilnarang.dev>
This commit is contained in:
parent
9a774de21e
commit
27970539af
1 changed files with 1 additions and 1 deletions
|
|
@ -225,7 +225,7 @@ def get_openid_configuration():
|
|||
|
||||
|
||||
@frappe.whitelist(allow_guest=True)
|
||||
def introspect_token(token=None, token_type_hint=None):
|
||||
def introspect_token(token: str, token_type_hint=None):
|
||||
if token_type_hint not in ["access_token", "refresh_token"]:
|
||||
token_type_hint = "access_token"
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue