fix: remove irrelevant params
This commit is contained in:
parent
05b1174fa0
commit
cdd91310cd
1 changed files with 1 additions and 4 deletions
|
|
@ -253,9 +253,7 @@ class OAuthWebRequestValidator(RequestValidator):
|
|||
# return its scopes, these will be passed on to the refreshed
|
||||
# access token if the client did not specify a scope during the
|
||||
# request.
|
||||
obearer_token = frappe.get_doc(
|
||||
"OAuth Bearer Token", {"refresh_token": refresh_token}, ignore_permissions=True
|
||||
)
|
||||
obearer_token = frappe.get_doc("OAuth Bearer Token", {"refresh_token": refresh_token})
|
||||
return obearer_token.scopes
|
||||
|
||||
def revoke_token(self, token, token_type_hint, request, *args, **kwargs):
|
||||
|
|
@ -296,7 +294,6 @@ class OAuthWebRequestValidator(RequestValidator):
|
|||
otoken = frappe.get_doc(
|
||||
"OAuth Bearer Token",
|
||||
{"refresh_token": refresh_token, "status": "Active"},
|
||||
ignore_permissions=True,
|
||||
)
|
||||
|
||||
if not otoken:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue