misc: fix handling of AnonymousUser when doing signed requests (#10583)
This commit is contained in:
parent
47da6e2865
commit
0c2cf86231
|
@ -45,13 +45,13 @@ class Requests(RequestsSession):
|
|||
raise_if_not_cached = kwargs.pop('raise_if_not_cached', False)
|
||||
|
||||
if remote_service:
|
||||
if not user:
|
||||
if isinstance(user, dict):
|
||||
query_params = user.copy()
|
||||
elif not user or not user.is_authenticated():
|
||||
if without_user:
|
||||
query_params = {}
|
||||
else:
|
||||
query_params = {'NameID': '', 'email': ''}
|
||||
elif isinstance(user, dict):
|
||||
query_params = user.copy()
|
||||
else:
|
||||
query_params = {}
|
||||
if federation_key == 'nameid':
|
||||
|
|
Loading…
Reference in New Issue