| |
@@ -347,9 +347,8 @@
|
| |
for n, e in self.cfg.extensions.available().items():
|
| |
data = e.get_claims(request_data['scope'])
|
| |
self.debug('%s returned %s' % (n, repr(data)))
|
| |
- if len(data) > 0:
|
| |
- # pylint: disable=invalid-sequence-index
|
| |
- request_data['claims']['userinfo'].extend(data)
|
| |
+ for claim in data:
|
| |
+ request_data['claims']['userinfo'][claim] = None
|
| |
|
| |
# Store data so we can continue with the request
|
| |
us = UserSession()
|
| |
The claims list in extensions is a list, but we need to add the values
to a dict of claims requested.
Signed-off-by: Patrick Uiterwijk puiterwijk@redhat.com