File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/DIRAC/FrameworkSystem/private/authorization/utils Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 4
4
from authlib .common .encoding import to_unicode
5
5
from authlib .oauth2 import OAuth2Request as _OAuth2Request
6
6
from authlib .oauth2 .rfc6749 .util import scope_to_list
7
- from urllib .parse import quote
7
+ from urllib .parse import quote , urlparse
8
8
9
9
10
10
class OAuth2Request (_OAuth2Request ):
@@ -19,6 +19,7 @@ def addScopes(self, scopes):
19
19
20
20
def setQueryArguments (self , ** kwargs ):
21
21
"""Set query arguments"""
22
+ query = self .query = urlparse (self .uri ).query
22
23
for k in kwargs :
23
24
# Quote value before add it to request query
24
25
value = (
@@ -39,7 +40,8 @@ def path(self):
39
40
40
41
:return: str
41
42
"""
42
- return self .uri .replace ("?%s" % (self .query or "" ), "" )
43
+ query = urlparse (self .uri ).query
44
+ return self .uri .replace ("?%s" % (query or "" ), "" )
43
45
44
46
@property
45
47
def groups (self ):
You can’t perform that action at this time.
0 commit comments