Commit 08da6b94 authored by Titouan Soulard's avatar Titouan Soulard

erp5_oauth2_authorisation: remove `REQUEST` where still used

parent fb417244
......@@ -1098,7 +1098,7 @@ class OAuth2AuthorisationServerConnector(XMLObject):
)
# pylint: enable=unexpected-keyword-arg, no-value-for-parameter
def _token(self, request_validator, REQUEST):
def _token(self, request_validator):
now = int(time())
def getAccessTokenLifespan(request):
session_value = request.user.erp5_session_value
......@@ -1247,7 +1247,7 @@ class OAuth2AuthorisationServerConnector(XMLObject):
- authorization_code (standard)
- refresh_token (standard)
"""
return self._token(request_validator, REQUEST).create_token_response
return self._token(request_validator).create_token_response
security.declareProtected('tokenInternal', Permissions.ModifyPortalContent)
def tokenInternal(self, user_id, client_value, REQUEST):
......@@ -1283,7 +1283,6 @@ class OAuth2AuthorisationServerConnector(XMLObject):
request_validator=_ERP5RequestValidator(
authorisation_server_connector_value=self,
),
REQUEST=REQUEST,
).create_token_response(
uri=redirect_uri,
http_method='POST',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment