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
Labels
Merge Requests
140
Merge Requests
140
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
Jobs
Commits
Open sidebar
nexedi
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
Pipeline
#26741
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Show 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):
portal
=
client_value
.
getPortalObject
()
# HACK: add support for response_mode (which is not an OAuth2 feature
# 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
# and is hence missing in request_info_dict. Run the normal checks and
# add it ourselves.
...
...
@@ -441,13 +441,13 @@ class _ERP5AuthorisationEndpoint(AuthorizationEndpoint):
}
for
x
in
(
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
#
functionally required to follow the relation, so it may not
#
have picked that) but the category does not exist
.
# scope is allowed for this client
but the category does not exist.
#
_ERP5RequestValidator is not functionally required to follow the
#
relation, so it may not have noticed
.
if
x
is
not
None
]
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