Commit Graph

22 Commits

Author SHA1 Message Date
Benjamin Dauvergne e04459825c add copyright headers (#32866) 2019-05-09 14:02:40 +02:00
Benjamin Dauvergne ce56e15d0b apps: hide password management link when FC authenticated (#27083)
It's done by implementing a2_hook_user_can_change_password on the
AppConfig object.
2019-05-03 16:34:49 +02:00
Serghei Mihai edc3ffaade misc: rename authentication "frontend" to "authenticator" (#14475) 2019-03-19 09:40:04 +01:00
Frédéric Péters c21a16108a don't alter can_reset_password flag for users without an FC account (#25655) 2018-08-21 11:15:40 +02:00
Benjamin Dauvergne 681dcf3862 implement AppConfig.a2_hook_user_can_reset_password (fixes #25535)
It returns True if an user is linked to an FC account, it allows any
FC user to login to its account as long as it still has control of the
FC email even if he has lost its FC credentials.
2018-07-30 17:22:36 +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
Josue Kouka ffdf6047dc allow fc unlinking through api (#15297) 2017-07-05 15:33:05 +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 74aadc0508 pep8ness 2017-03-07 11:32:12 +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 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 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 53ba94242b Implement prefilling of registration form (fixes #10267). 2016-03-14 10:19:24 +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 06db9ecf8b Move logout url building to a utils file. 2016-02-12 12:33:30 +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 c6ed10ccfe logout_list returns a uri for redirect, string for iframe. 2015-12-03 17:58:52 +01:00
Mikaël Ates 861b792bed Remove trailling whitespaces. 2015-05-29 11:34:11 +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 61222fb11c remove __version__ and dependency on sekizai 2015-05-28 00:42:05 +02:00
Benjamin Dauvergne 5f6e90e32e Rename MSP plugin as FC plugin 2015-05-27 18:07:23 +02:00