Skip to content

Commit 37dd3de

Browse files
committed
Always request membership of the signed_fpca group
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
1 parent 1747536 commit 37dd3de

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

NEWS

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@ NEWS
55
:Authors: Toshio Kuratomi, Luke Macken, Ricky Elrod, Patrick Uiterwijk, Ralph Bean
66
:Version: 1.1.0
77

8+
------
9+
1.1.1
10+
------
11+
12+
Bugfixes:
13+
14+
* Membership of the "signed_fpca" group was not always requested.
15+
16+
817
------
918
1.1.0
1019
------

flask_fas_openid.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,11 @@ def login(self, username=None, password=None, return_url=None,
265265

266266
if isinstance(groups, six.string_types):
267267
groups = [groups]
268+
# In the new AAA system, we know a user has signed the FPCA by looking
269+
# a group membership. We must therefore always request the
270+
# corresponding group.
271+
if "_FAS_ALL_GROUPS_" not in groups:
272+
groups.append("signed_fpca")
268273

269274
request.addExtension(sreg.SRegRequest(
270275
required=['nickname', 'fullname', 'email', 'timezone']))

0 commit comments

Comments
 (0)