Benjamin Dauvergne
8df4f28123
utils: fix access to verified property of mappings ( fixes #23271 )
2018-04-26 15:43:20 +02:00
Elias Showk
2b2f8ca1b0
remove url patterns to support django 1.11 ( #23270 )
2018-04-18 15:43:33 +02:00
Frédéric Péters
d8f8257987
do not allow unauthenticated access to unlink page ( fixes #22405 )
2018-03-28 21:49:44 +02:00
Benjamin Dauvergne
afa48159bb
api: add franceconnect information to user's API when ?full is used ( fixes #21962 )
...
The following field is added to user's attributes if FC plugin is
enabled and the "full" parameter is given to the user's API:
"franceconnect": {
"linked": true,
"link_url": "https://idp/accounts/fc/callback/ ",
"unlink_url": "https://idp/accounts/fc/unlink/ "
}
2018-02-20 11:10:06 +01:00
Benjamin Dauvergne
4bb9f76c99
locale: update french translations for release 0.10 ( fixes #21874 )
...
email was replaced by « adresse de courriel » everywhere.
2018-02-15 14:38:55 +01:00
Benjamin Dauvergne
0f877b75a9
views: show warning to users with a mail linked to another FC account ( fixes #21292 )
...
The warning will help them connect their FC account to normally
registered account.
2018-02-15 13:03:40 +01:00
Benjamin Dauvergne
c701e61043
retry HTTP requests 3 times ( fixes #21783 )
...
Retry is applied to access token request and user info requests (through
OAuth2Session). There is a small exponential backoff of 0.5 and 1s.
Also decrease log level of message for failure of retrieval of the
access token or the user info to the level WARNING, that's never been a
problem for the user, as he was correctly redirected to its origin
(usually and IdP endpoint).
2018-02-11 22:18:21 +01:00
Benjamin Dauvergne
738066a5d9
tox.ini: remove python-catchlog which is obsolete
2018-02-11 22:09:22 +01:00
Paul Marillonnet
9340dcff1a
documentation update ( #20860 )
2018-02-02 12:24:44 +01:00
Benjamin Dauvergne
298c7faca7
add support for service slugs on login
2018-02-01 16:46:55 +01:00
Benjamin Dauvergne
a0bc944e84
fix login with a non-unique email where an account linked to another FC account already exists
2018-02-01 16:46:55 +01:00
Benjamin Dauvergne
3abded80f6
augment timeout on POST to FC to 10 seconds ( fixes #21596 )
2018-02-01 16:46:55 +01:00
Benjamin Dauvergne
28402bf314
add request to fc-link hook ( fixes #20288 )
2017-11-27 09:52:59 +01:00
Benjamin Dauvergne
eddf2da475
call a2 hooks for linking and unlinking events ( fixes #20228 )
2017-11-22 21:16:36 +01:00
Benjamin Dauvergne
2e5bd982e6
update french translations ( #20078 )
2017-11-16 10:45:40 +01:00
Benjamin Dauvergne
89fabbc47f
views: change messages levels ( #20078 )
2017-11-16 10:45:40 +01:00
Benjamin Dauvergne
a671f6c97c
views: do not permit linking if the user has already a link to FC ( #20078 )
2017-11-16 10:45:40 +01:00
Benjamin Dauvergne
e9b7ed137a
views: forbid automatic linking based on email if multiples users are found or if target user has already a link ( fixes #20078 )
2017-11-16 10:45:40 +01:00
Benjamin Dauvergne
2b99011027
backends: make sub parameter non optional in authenticate()
2017-11-08 17:38:31 +01:00
Benjamin Dauvergne
313824142a
always unlink from all FC accounts ( fixes #19947 )
2017-11-08 11:11:12 +01:00
Serghei Mihai
612877092c
update FC logos ( #19585 )
2017-10-24 17:24:38 +02:00
Serghei Mihai
29876048c0
update login and register buttons images ( #19162 )
2017-10-16 09:31:25 +02:00
Serghei
2c1ddcdfc3
replace logo image for account linking ( #17391 )
2017-10-11 22:00:14 +02:00
Benjamin Dauvergne
b9987366ca
views: force fc-register to always redirect post registration to fc-login-or-link ( fixes #19270 )
...
Without it linking to FC does not happen
2017-10-09 15:15:04 +02:00
Benjamin Dauvergne
73c774d1b2
utils: allow a mapping to depend from another using tags ( fixes #19251 )
2017-10-06 14:26:51 +02:00
Benjamin Dauvergne
4c9dab9784
utils: add an if-empty modifier to only set a value from FC if the existing value is empty ( fixes #19250 )
2017-10-06 14:26:03 +02:00
Benjamin Dauvergne
9789aca728
utils: normalize mapping in apply_user_info_mappings ( #19250 )
2017-10-06 14:25:58 +02:00
Benjamin Dauvergne
5dcdf8ead8
views: block DisplayMessageBeforeRedirectMiddleware on redirect to FC ( fixes #19247 )
2017-10-06 13:15:15 +02:00
Benjamin Dauvergne
39ea7fb75c
utils: add a notempty transformation for attribute mappings ( fixes #19233 )
2017-10-05 15:33:08 +02:00
Benjamin Dauvergne
0597b3e27e
django 1.9 compatibility
2017-09-19 16:45:30 +02:00
Benjamin Dauvergne
48f4210106
backends: always create new accounts in the default OU ( fixes #18764 )
2017-09-19 16:45:30 +02:00
Benjamin Dauvergne
6249926666
views: automatically link user with existing email if email is unique ( fixes #18763 )
...
Email must be unique if settings.A2_EMAIL_IS_UNIQUE is True or
get_default_ou().email_is_unique is True.
2017-09-19 16:45:30 +02:00
Benjamin Dauvergne
4fb66cc6fb
models: check issuer using only URL scheme and netloc ( fixes #18766 )
2017-09-18 17:18:12 +02:00
Benjamin Dauvergne
d36f1110d3
tests: test with non ASCII characters
2017-09-18 17:18:12 +02:00
Benjamin Dauvergne
7a91aa07cb
utils: do not set absent references to None, ignore them instead ( fixes #18765 )
2017-09-18 17:18:12 +02:00
Frédéric Péters
8e68ccdef1
style: switch to extra-body-class for custom body class ( #17983 )
2017-08-12 17:50:35 +02:00
Benjamin Dauvergne
54ba992b15
views: remove dead code
2017-07-28 16:58:04 +02:00
Benjamin Dauvergne
9f3ec479ad
utils: allow referencing a sub object of user_info in attribute mapping
2017-07-28 16:57:56 +02:00
Benjamin Dauvergne
d5c76ccee0
views: add setting for FC scopes
2017-07-28 16:57:45 +02:00
Benjamin Dauvergne
8aed0278c3
backends: fix logging of unicode strings
2017-07-26 19:05:38 +02:00
Benjamin Dauvergne
44d8bfb472
utils: fix mapping of user attributes
2017-07-18 19:29:37 +02:00
Benjamin Dauvergne
2ee9cc3a7d
setup.py: distribute insee files
2017-07-18 00:44:30 +02:00
Benjamin Dauvergne
e32a2acd58
indicate registration URL is coming from france connect module
2017-07-11 16:45:51 +02:00
Benjamin Dauvergne
fb59436835
redirect to auth_logout if no post logout redirect URI is found
2017-07-11 16:45:25 +02:00
Benjamin Dauvergne
4e09a681ce
fix typo introduced in commit a7677f4bc0
( #17331 )
2017-07-11 16:24:03 +02:00
Serghei
6bf6ff6c8c
templates: use different ids for link and its container ( #17421 )
2017-07-06 18:59:08 +02:00
Josue Kouka
ffdf6047dc
allow fc unlinking through api ( #15297 )
2017-07-05 15:33:05 +02:00
Benjamin Dauvergne
a7677f4bc0
do not logout from local session on unlink (bis #17331 )
...
Fix bug introduced in previous commit.
2017-07-05 09:59:39 +02:00
Benjamin Dauvergne
212d41fdbe
do not logout from local session on unlink ( fixes #17331 )
2017-07-04 12:06:26 +02:00
Benjamin Dauvergne
9587e13780
fix issuer check
2017-06-22 13:41:22 +02:00