Skip to content

Commit 8fe9695

Browse files
abompardnphilipp
authored andcommitted
Support the new AAA system
In the new AAA system, signing an agreement adds the user to a specific group. Set the `cla_done` attribute accordingly. Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
1 parent 2c92201 commit 8fe9695

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

NEWS

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,18 @@ NEWS
33
====
44

55
:Authors: Toshio Kuratomi, Luke Macken, Ricky Elrod, Patrick Uiterwijk, Ralph Bean
6-
:Version: 1.0.0
6+
:Version: 1.1.0
7+
8+
------
9+
1.1.0
10+
------
11+
12+
New features:
13+
14+
* Support for the new AAA system, which adds users who have signed agreement
15+
"foobar" to the ``signed_foobar`` group. Make use of this to set the
16+
``cla_done`` key.
17+
718

819
------
920
1.0.0

flask_fas_openid.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,10 @@ def _handle_openid_request(self):
169169
if teams_resp:
170170
# The groups do not contain the cla_ groups
171171
user['groups'] = frozenset(teams_resp.teams)
172+
# In the new AAA system, signing an agreement adds the user to a
173+
# specific group. The FPCA has replaced the CLA.
174+
if "signed_fpca" in user["groups"]:
175+
user["cla_done"] = True
172176
if ax_resp:
173177
ssh_keys = ax_resp.get(
174178
'http://fedoauth.org/openid/schema/SSH/key')

0 commit comments

Comments
 (0)