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.
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.
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.
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.
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.