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)
|
raise_if_not_cached = kwargs.pop('raise_if_not_cached', False)
|
||||||
|
|
||||||
if remote_service:
|
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:
|
if without_user:
|
||||||
query_params = {}
|
query_params = {}
|
||||||
else:
|
else:
|
||||||
query_params = {'NameID': '', 'email': ''}
|
query_params = {'NameID': '', 'email': ''}
|
||||||
elif isinstance(user, dict):
|
|
||||||
query_params = user.copy()
|
|
||||||
else:
|
else:
|
||||||
query_params = {}
|
query_params = {}
|
||||||
if federation_key == 'nameid':
|
if federation_key == 'nameid':
|
||||||
|
|
Loading…
Reference in New Issue