Mikaël Ates
bc66f2ee3e
New images for the login button and style refined.
2016-03-24 21:31:35 +01:00
Mikaël Ates
1443bfc769
Remove title from profile frontend.
2016-03-16 16:03:06 +01:00
Mikaël Ates
2ca237f422
Inactive users can not authenticate ( fixes #10312 ).
2016-03-16 14:59:25 +01:00
Mikaël Ates
07d6f4111a
Return URL at logout from unlink is not a named url anymore.
2016-03-15 12:40:34 +01:00
Mikaël Ates
480ab4f225
Set an explicit return URL at logout from unlink in app settings.
2016-03-15 12:39:05 +01:00
Mikaël Ates
15b35464f6
Redirection ending logout return un url, not named url.
2016-03-15 12:26:30 +01:00
Mikaël Ates
8848c87e78
Add some debug logs.
2016-03-15 12:25:23 +01:00
Mikaël Ates
ebc975a26b
Change default value of settings CREATE and LOGOUT_WHEN_UNLINK
2016-03-14 11:38:53 +01:00
Mikaël Ates
53ba94242b
Implement prefilling of registration form ( fixes #10267 ).
2016-03-14 10:19:24 +01:00
Mikaël Ates
aad49deeac
Really clean session at logout.
2016-03-10 17:28:59 +01:00
Mikaël Ates
f73bc3116c
Update message at account linking.
2016-03-10 17:23:19 +01:00
Frédéric Péters
1b33bfad8a
translation: fix a typo
2016-02-29 19:57:24 +01:00
Mikaël Ates
90e4c595eb
Fix FranceConnect name in debian control file.
2016-02-23 18:19:01 +01:00
Mikaël Ates
31d405830d
Add svg image format in data package (bis).
2016-02-23 18:18:13 +01:00
Mikaël Ates
8c61e0ddf3
Add svg image format in MANIFEST.
2016-02-23 16:28:44 +01:00
Mikaël Ates
a3b723a37a
Add svg image format in data package.
2016-02-23 16:24:30 +01:00
Mikaël Ates
7a2d96f0f0
Update README.
2016-02-23 15:38:21 +01:00
Mikaël Ates
c7f8d654d0
Refine data provider management.
...
Data is requested using the login or link endpoint view giving
space delimited scopes in the `fd_scopes` get parameter.
Data is stored in a dictionnary of scopes in the session.
Build FD request url using urlencode.
Use urlencode from django rather than from urllib.
2016-02-23 15:38:21 +01:00
Mikaël Ates
66b8f36290
Handle ressource resolution failure and fail sso in that case.
2016-02-23 09:45:44 +01:00
Mikaël Ates
8213f29ceb
Handle errors in access token call as for ressource resolution.
2016-02-23 09:43:51 +01:00
Mikaël Ates
1ce64ca17e
Use a single logger declaration.
2016-02-23 09:06:50 +01:00
Mikaël Ates
1b2004fdde
Enhance messages and update translations.
2016-02-17 15:31:45 +01:00
Mikaël Ates
ea183fb270
Use the official images and about link ( fixes #9718 ).
...
Use the official images for the log in button and the linking
button in profile.
Add about page link on frontends.
Add title for the profile frontend.
Add translation statements.
2016-02-17 15:31:45 +01:00
Mikaël Ates
3f0cd41558
Add a setting for about page url set in the frontend contexts.
...
Display a link on FranceConnect about page is mandatory.
The url in different in testing, the default one, from the
production mode.
2016-02-17 15:16:19 +01:00
Mikaël Ates
5c65d8f9a8
Add missing logger declaration (from 89f3efd15f
).
2016-02-17 11:02:40 +01:00
Mikaël Ates
bc5ad08d16
Refactor logout at unlinking.
...
Use new setting to enable logout at unlinking. Some cases need it,
like FranceConnect, but others may not. Disabled by default, enable
with : A2_FC_LOGOUT_WHEN_UNLINK = True.
Use new setting for the return url after logout at unlinking. It is
for now 'account_management' but it could be modified. By default it
is the same as the return url at normal logout. Then it should be set
with A2_FC_LOGOUT_AT_UNLINK_RETURN_URL = 'account_management'.
Use logout url building function in utils.
2016-02-15 17:07:50 +01:00
Mikaël Ates
061360b6e0
Add a setting to enable unlinking when account creation is activated.
2016-02-15 17:00:18 +01:00
Mikaël Ates
89f3efd15f
Handle token response connexion errors.
2016-02-15 16:52:11 +01:00
Mikaël Ates
42545e39db
Do not create a new user if the user is already authenticated.
2016-02-15 16:52:11 +01:00
Mikaël Ates
d464aa9c96
Handle token response errors.
2016-02-15 16:52:11 +01:00
Mikaël Ates
0ea2be49c5
Add log at user creation.
2016-02-12 12:38:12 +01:00
Mikaël Ates
06db9ecf8b
Move logout url building to a utils file.
2016-02-12 12:33:30 +01:00
Mikaël Ates
6a5efd5083
POST data for the token request is not in json.
...
As specified in the RFC4769 'The client makes a request to the token
endpoint by sending the following parameters using the
"application/x-www-form-urlencoded"'.
2016-02-12 12:17:41 +01:00
Mikaël Ates
54651dadc2
Plugin method for logout by redirection and no more logout in an iframe
...
A separate Plugin method is now used to return logout profiles
by redirection.
The logout by iframe is removed because it is not officially supported.
Some useless app settings have been remove.
The next field name can now be set in app settings.
2015-12-22 12:15:55 +01:00
Mikaël Ates
1702acc492
No logout from unlink view when not logged on FC.
2015-12-03 18:28:13 +01:00
Mikaël Ates
a27eec7f04
Logout after unlinking.
2015-12-03 18:00:35 +01:00
Mikaël Ates
c6ed10ccfe
logout_list returns a uri for redirect, string for iframe.
2015-12-03 17:58:52 +01:00
Mikaël Ates
8dc4345b7e
New app settings.
...
DO_LOGOUT : Flag to activate logout. False by default.
LOGOUT_REDIRECT : Flag to set logout by redirect or in
an iframe. Redirect by default.
LOGOUT_RETURN_URL : Django url name to redirect after
logout. '/' by default.
2015-12-03 17:51:11 +01:00
Mikaël Ates
a0ffde7e50
Add a callback view for logout.
2015-12-03 17:49:21 +01:00
Mikaël Ates
528bd2091b
Remove js popup class for linking for now.
2015-11-02 16:43:13 +01:00
Mikaël Ates
b3c8649e6f
Update translations.
2015-11-02 16:34:34 +01:00
Mikaël Ates
bf3332d991
Update style for a small FC button.
2015-11-02 16:34:07 +01:00
Mikaël Ates
30ebdc770c
Add link creation button from frontend profile template.
2015-11-02 16:33:37 +01:00
Mikaël Ates
2c00142b51
Add translation tag to frontend connecting template.
2015-11-02 16:32:58 +01:00
Mikaël Ates
9ebcdda5a8
FranceConnect does not take space separator.
2015-11-02 16:09:24 +01:00
Mikaël Ates
be14515458
Load i18n tag in frontend connecting template.
2015-11-02 16:08:35 +01:00
Mikaël Ates
b9683d7585
add load tags in frontend linking template.
2015-11-02 16:07:39 +01:00
Mikaël Ates
9d9f0a1b54
Enhance FC button style.
2015-11-02 14:18:53 +01:00
Mikaël Ates
55d0027387
Adapt templating structure for stylesheet including and display a FC button.
2015-11-02 12:42:26 +01:00
Mikaël Ates
bf9b46d850
Bits of style for a FC button.
2015-11-02 12:41:06 +01:00