0001-journal_event_types-fix-incorrect-FranceConnect-iden.patch
src/authentic2/journal_event_types.py | ||
---|---|---|
111 | 111 |
def login_method_label(how): |
112 | 112 |
if how.startswith('password'): |
113 | 113 |
return _('password') |
114 |
elif how == 'fc':
|
|
114 |
elif how == 'france-connect':
|
|
115 | 115 |
return 'FranceConnect' |
116 | 116 |
elif how == 'saml': |
117 | 117 |
return 'SAML' |
tests/test_manager_journal.py | ||
---|---|---|
71 | 71 |
user=user, |
72 | 72 |
session=session1, |
73 | 73 |
service=service, |
74 |
how="franceconnect", |
|
74 |
how="france-connect",
|
|
75 | 75 |
) |
76 | 76 |
make("user.logout", user=user, session=session1) |
77 | 77 | |
... | ... | |
320 | 320 |
'user': '-', |
321 | 321 |
}, |
322 | 322 |
{ |
323 |
'message': 'registration using franceconnect',
|
|
323 |
'message': 'registration using FranceConnect',
|
|
324 | 324 |
'timestamp': 'Jan. 1, 2020, 1 a.m.', |
325 | 325 |
'type': 'user.registration', |
326 | 326 |
'user': 'Johnny doe', |
... | ... | |
608 | 608 | |
609 | 609 |
assert content == [ |
610 | 610 |
{ |
611 |
'message': 'registration using franceconnect',
|
|
611 |
'message': 'registration using FranceConnect',
|
|
612 | 612 |
'timestamp': 'Jan. 1, 2020, 1 a.m.', |
613 | 613 |
'type': 'user.registration', |
614 | 614 |
'user': 'Johnny doe', |
615 |
- |