Commit Graph

23 Commits

Author SHA1 Message Date
Benjamin Dauvergne 631a86deec app_settings: set password to random value by default (#24835) 2018-07-14 08:31:34 +02:00
Josue Kouka 215c1f5abd use REQUESTS_PROXIES instead of A2_FC_REQUESTS_PROXIES (#24929) 2018-07-02 14:48:16 +02:00
Josue Kouka deebd83a60 add fc requests proxies support (#24713) 2018-06-29 15:05:20 +02:00
Benjamin Dauvergne d5c76ccee0 views: add setting for FC scopes 2017-07-28 16:57:45 +02:00
Benjamin Dauvergne f0a7266451 improve mapping of FC attributes to A2 attributes (#10062) 2017-03-21 11:02:26 +01:00
Benjamin Dauvergne 5d422c2296 always return to /logout/ after FC logout (fixes #15223) 2017-03-07 11:32:12 +01:00
Mikaël Ates c97337a125 Update official about link. 2016-06-20 16:18:09 +02:00
Mikaël Ates ca29f7564a Remove obsolete setting. 2016-04-29 18:24:11 +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 480ab4f225 Set an explicit return URL at logout from unlink in app settings. 2016-03-15 12:39:05 +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 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 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 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 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 dc86341ff4 Add settings to define data providers. 2015-05-29 11:24:26 +02:00
Benjamin Dauvergne aec881a7c0 app_settings: rename enabled to enable 2015-05-28 00:54:18 +02:00
Benjamin Dauvergne 60c11073a5 Keep only the LoginOrLinkView 2015-05-27 18:47:43 +02:00
Benjamin Dauvergne 5f6e90e32e Rename MSP plugin as FC plugin 2015-05-27 18:07:23 +02:00