Commit Graph

285 Commits

Author SHA1 Message Date
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
Mikaël Ates e75369dea1 Add new FC image. 2015-11-02 12:39:26 +01:00
Mikaël Ates 528c0735a7 Update translations. 2015-11-02 10:57:29 +01:00
Mikaël Ates 6ec56cbd8f Modify unicode of FcAccount Model. 2015-11-02 10:57:29 +01:00
Mikaël Ates 953966c31f Add unlink links on account management page. 2015-11-02 10:57:29 +01:00
Mikaël Ates 7fbc498642 Add csrf token and unlink explanations to unlink page. 2015-11-02 10:57:29 +01:00
Mikaël Ates 088894d751 End unlink view. 2015-11-02 10:57:29 +01:00
Mikaël Ates 79237e102f Name unlink url. 2015-11-02 10:57:29 +01:00
Benjamin Dauvergne 31d25e8ec4 add an unlink view 2015-10-31 00:39:58 +01:00
Benjamin Dauvergne a385c3bbe3 setup.py: fix compile_translations 2015-10-30 15:56:29 +01:00
Benjamin Dauvergne b76a0b5b68 setup.py: add zip_safe=False 2015-10-30 15:56:29 +01:00
Mikaël Ates cc5b1d0092 Use same template as msp plugin for login page. 2015-10-30 12:17:26 +01:00
Mikaël Ates e49ef75c72 Update translations. 2015-10-30 11:02:57 +01:00
Mikaël Ates dd92998e7d Display FC logo with the login template. 2015-10-30 10:50:07 +01:00
Mikaël Ates 3dd8a46383 Add FC logo. 2015-10-30 10:49:15 +01:00
Mikaël Ates 6044164dbc Remove duplicated class definition in setup script. 2015-06-03 10:33:31 +02:00
Mikaël Ates 861b792bed Remove trailling whitespaces. 2015-05-29 11:34:11 +02:00
Mikaël Ates 0fd7ca4b6e Add linking content with the frontend profile method. 2015-05-29 11:33:42 +02:00
Mikaël Ates f87b588013 Add data provider requesting. 2015-05-29 11:28:57 +02:00
Mikaël Ates 36216ce0ae Update README. 2015-05-29 11:27:58 +02:00
Mikaël Ates dc86341ff4 Add settings to define data providers. 2015-05-29 11:24:26 +02:00
Mikaël Ates cf007c090d Set FcAccount user_info field at login. 2015-05-29 11:15:07 +02:00
Mikaël Ates 8cc556422e Add user_info field to FcAccount model. 2015-05-29 11:13:44 +02:00
Benjamin Dauvergne b819c2cc68 Finish logout, it would be better to do it after logout from all SPs 2015-05-28 11:08:43 +02:00
Benjamin Dauvergne 8bbb3e0015 First working implementation, logout is not finished 2015-05-28 10:57:24 +02:00
Benjamin Dauvergne aec881a7c0 app_settings: rename enabled to enable 2015-05-28 00:54:18 +02:00
Benjamin Dauvergne 61222fb11c remove __version__ and dependency on sekizai 2015-05-28 00:42:05 +02:00
Benjamin Dauvergne a15d917b3a MANIFEST.in: add VERSION and MANIFEST.in 2015-05-28 00:36:10 +02:00
Benjamin Dauvergne 5c2336699b debian: fix control file 2015-05-28 00:32:47 +02:00
Benjamin Dauvergne 7910be4be8 views: add debug logs, improve info log, copy id_token and user-info into session 2015-05-28 00:31:26 +02:00