summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Uiterwijk <puiterwijk@redhat.com>2015-04-10 02:47:29 +0200
committerPatrick Uiterwijk <puiterwijk@redhat.com>2015-04-10 02:53:37 +0200
commit34275a71299437e8371ba518ba301ed9d7c83f74 (patch)
tree100dc458d2d763a74fbb75378b212e3609a09551
parent2221f5b909d2fd3f8ba935dc5336392ece395416 (diff)
downloadipsilon-34275a71299437e8371ba518ba301ed9d7c83f74.zip
ipsilon-34275a71299437e8371ba518ba301ed9d7c83f74.tar.gz
ipsilon-34275a71299437e8371ba518ba301ed9d7c83f74.tar.xz
This was renamed to _groups internally
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com> Reviewed-by: Rob Crittenden <rcritten@redhat.com>
-rw-r--r--ipsilon/providers/openid/extensions/fas_teams.py4
-rw-r--r--ipsilon/providers/openid/extensions/teams.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/ipsilon/providers/openid/extensions/fas_teams.py b/ipsilon/providers/openid/extensions/fas_teams.py
index af0b942..a726d1f 100644
--- a/ipsilon/providers/openid/extensions/fas_teams.py
+++ b/ipsilon/providers/openid/extensions/fas_teams.py
@@ -17,6 +17,6 @@ class OpenidExtension(Teams):
return {}
if '_FAS_ALL_GROUPS_' in req.requested:
# We will send all groups the user is a member of
- req.requested = userdata.get('groups', [])
- data = userdata.get('groups', [])
+ req.requested = userdata.get('_groups', [])
+ data = userdata.get('_groups', [])
return teams.TeamsResponse.extractResponse(req, data)
diff --git a/ipsilon/providers/openid/extensions/teams.py b/ipsilon/providers/openid/extensions/teams.py
index 86fe30f..195d319 100644
--- a/ipsilon/providers/openid/extensions/teams.py
+++ b/ipsilon/providers/openid/extensions/teams.py
@@ -18,7 +18,7 @@ class Teams(OpenidExtensionBase):
req = teams.TeamsRequest.fromOpenIDRequest(request)
if req is None:
return {}
- data = userdata.get('groups', [])
+ data = userdata.get('_groups', [])
return teams.TeamsResponse.extractResponse(req, data)
def _display(self, request, userdata):