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
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Levin Zimmermann
erp5
Commits
e5b0cab5
Commit
e5b0cab5
authored
Feb 21, 2023
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_oauth_authorisation: Improve readability in a few places
No functional change expected.
parent
0508c619
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
bt5/erp5_oauth2_authorisation/DocumentTemplateItem/portal_components/document.erp5.OAuth2AuthorisationServerConnector.py
...nents/document.erp5.OAuth2AuthorisationServerConnector.py
+6
-6
No files found.
bt5/erp5_oauth2_authorisation/DocumentTemplateItem/portal_components/document.erp5.OAuth2AuthorisationServerConnector.py
View file @
e5b0cab5
...
@@ -344,7 +344,7 @@ class _ERP5AuthorisationEndpoint(AuthorizationEndpoint):
...
@@ -344,7 +344,7 @@ class _ERP5AuthorisationEndpoint(AuthorizationEndpoint):
portal
=
client_value
.
getPortalObject
()
portal
=
client_value
.
getPortalObject
()
# HACK: add support for response_mode (which is not an OAuth2 feature
# HACK: add support for response_mode (which is not an OAuth2 feature
# but an OpenID feature), as requested by Romain.
# but an OpenID feature), as requested by Romain.
# oauthlib does not stric
lt
y separates both implementations, so this
# oauthlib does not stric
tl
y separates both implementations, so this
# parameter works, but it is ignored by validate_authorization_request
# parameter works, but it is ignored by validate_authorization_request
# and is hence missing in request_info_dict. Run the normal checks and
# and is hence missing in request_info_dict. Run the normal checks and
# add it ourselves.
# add it ourselves.
...
@@ -441,13 +441,13 @@ class _ERP5AuthorisationEndpoint(AuthorizationEndpoint):
...
@@ -441,13 +441,13 @@ class _ERP5AuthorisationEndpoint(AuthorizationEndpoint):
}
}
for
x
in
(
for
x
in
(
portal
.
portal_categories
.
resolveCategory
(
portal
.
portal_categories
.
resolveCategory
(
'oauth2_scope/'
+
x
.
encode
(
'utf-8'
),
'oauth2_scope/'
+
y
.
encode
(
'utf-8'
),
)
)
for
x
in
scope_list
for
y
in
scope_list
)
)
# scope is allowed for this client
(_ERP5RequestValidator is not
# scope is allowed for this client
but the category does not exist.
#
functionally required to follow the relation, so it may not
#
_ERP5RequestValidator is not functionally required to follow the
#
have picked that) but the category does not exist
.
#
relation, so it may not have noticed
.
if
x
is
not
None
if
x
is
not
None
]
]
other
[
'server_connector_path'
]
=
self
.
__server_connector_path
other
[
'server_connector_path'
]
=
self
.
__server_connector_path
...
...
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