Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Cédric Le Ninivin
erp5
Commits
08da6b94
Commit
08da6b94
authored
Oct 22, 2024
by
Titouan Soulard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_oauth2_authorisation: remove `REQUEST` where still used
parent
fb417244
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
bt5/erp5_oauth2_authorisation/DocumentTemplateItem/portal_components/document.erp5.OAuth2AuthorisationServerConnector.py
...nents/document.erp5.OAuth2AuthorisationServerConnector.py
+2
-3
No files found.
bt5/erp5_oauth2_authorisation/DocumentTemplateItem/portal_components/document.erp5.OAuth2AuthorisationServerConnector.py
View file @
08da6b94
...
...
@@ -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'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment