0001-misc-fix-handling-of-AnonymousUser-when-doing-signed.patch
combo/utils.py | ||
---|---|---|
45 | 45 |
raise_if_not_cached = kwargs.pop('raise_if_not_cached', False) |
46 | 46 | |
47 | 47 |
if remote_service: |
48 |
if not user: |
|
48 |
if isinstance(user, dict): |
|
49 |
query_params = user.copy() |
|
50 |
elif not user or not user.is_authenticated(): |
|
49 | 51 |
if without_user: |
50 | 52 |
query_params = {} |
51 | 53 |
else: |
52 | 54 |
query_params = {'NameID': '', 'email': ''} |
53 |
elif isinstance(user, dict): |
|
54 |
query_params = user.copy() |
|
55 | 55 |
else: |
56 | 56 |
query_params = {} |
57 | 57 |
if federation_key == 'nameid': |
58 |
- |