Commit Graph

189 Commits

Author SHA1 Message Date
Frédéric Péters c64df77a6e style: don't let button oversize its container (#13216) 2016-09-19 08:45:08 +02:00
Frédéric Péters 166c31a161 add a brief explanation after "what is franceconnect?" (#13174) 2016-09-14 09:35:45 +02:00
Frédéric Péters bd894374cd add initial migration (#13077) 2016-09-06 14:32:26 +02:00
Mikaël Ates c97337a125 Update official about link. 2016-06-20 16:18:09 +02:00
Mikaël Ates 277c428778 Fix bad version number in last commit. 2016-06-16 15:28:28 +02:00
Mikaël Ates 7a3e9983e1 Update dependency to authentic2. 2016-06-16 15:15:57 +02:00
Mikaël Ates c2af4c9770 Move registration frontend method to the Frontend (fixes #11351).
Needs authentic2 >= v2.1.20-1010.
2016-06-16 14:36:31 +02:00
Mikaël Ates 40ff5afd57 Hide linking button on profile frontend if the user is already linked (fixes #11328). 2016-06-16 09:23:54 +02:00
Mikaël Ates b4f0b51777 Add email in linking message (fixes #10912). 2016-05-13 17:06:00 +02:00
Mikaël Ates bea99539f5 Improve wording on unlinking page. 2016-05-12 17:34:40 +02:00
Mikaël Ates 8becabe272 Fix bad translation. 2016-05-04 13:10:23 +02:00
Mikaël Ates 2ed8588583 Prevent to add a link with an FC account already linked with another user (fixes #10791). 2016-05-04 11:42:50 +02:00
Mikaël Ates ca29f7564a Remove obsolete setting. 2016-04-29 18:24:11 +02:00
Mikaël Ates ff30392ddc Hide unlinking link if the user has no password and can't set it (fixes #10775). 2016-04-29 18:24:11 +02:00
Mikaël Ates 121e62a9e8 Prevent unlinking if the user has no password and can't set it (fixes #10775).
Unlinking is now prevented if the user has no usable password and can't
    change it because A2_REGISTRATION_CAN_CHANGE_PASSWORD is False.
    For now it is thus assumed that the password is the unique other mean of
    authentication and unlinking would make the account unreachable.

    Also use A2_REGISTRATION_SET_PASSWORD_FORM_CLASS setting instead of
    importing the form.
2016-04-29 18:24:11 +02:00
Mikaël Ates 922d075236 Update login or create account message. 2016-04-15 15:38:14 +02:00
Mikaël Ates d3d9aab919 Ask password at unlinking when the user has no usable password (fixes #10524) (ter). 2016-04-14 10:44:13 +02:00
Mikaël Ates 5704e98495 Ask password at unlinking when the user has no usable password (fixes #10524) (bis). 2016-04-14 10:21:08 +02:00
Mikaël Ates f1b2ced61b Ask password at unlinking when the user has no usable password (fixes #10524). 2016-04-13 23:03:31 +02:00
Mikaël Ates b9899c719a Define a registration frontend and manage account creation with FC data (fixes #10621).
The registration frontend is used when the user is not logged locally
    not with FC. The login template provide a link to the FC login view and
    then to the plugin registration view.

    If the user is already logged with FC, the login template provide a link
    to the plugin registration view.
2016-04-13 23:03:31 +02:00
Mikaël Ates 07a621c291 Add a registration view (fixes #10621).
The view is called to create an account using the data provided by FC
    at account creation.

    The data provided is put in a protected token and sent to the next url.

    If FC provides an email, the view redirects to the activation view.

    If an email is not provided, the view redirects to the email registration
    view.

    The confirm_data parameter of the activation view is a plugin setting.

    Account creation with FC means no password.
2016-04-13 23:03:31 +02:00
Mikaël Ates 95c13c3064 Display on the login page a button for quick account creation (fixes #10510).
After a successful sso and no user is authenticated the user is redirected
    on the login page. On the login page, the user may be asked to login with a
    password or to create a new account. The plugin login button is hidden to avoid
    an unecessary loop.

    The patch add an option to display an other button that the login button.
    This button reference the registration page and is filled with data from
    the sso. If skip resgitration with prefilling data options are set on authentic
    the button leads to a direct account creation.
2016-04-13 23:03:31 +02:00
Mikaël Ates c72eaa893c Add new scopes at login (fixes #10510). 2016-04-13 23:02:51 +02:00
Mikaël Ates 7bdc2fce5f Remove deprecated idp info form the unicode of an FCAccount (fixes #10628). 2016-04-13 22:52:33 +02:00
Mikaël Ates 13ddc2c11a New image for the linking button and style refined. 2016-03-24 21:58:23 +01:00
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