omab/django-social-auth — Issue #211: Seaparate URL for registration new accounts
Author: sarvi
Created: 2011-12-31 20:05:55+00:00
State: open

Today when I use
1. 'socialauth_begin' as the URL it creates an account automatically if an account does not exist.
2. 'socialauth_associate_begin' as the URL it will try to associate the authenticated user to the currently logged in user

New Use case:
3. I want 'socialauth_begin' to only authenticate a user and log him in if he is already registered. If an account with that authentication provider is not registered or associated, I want it to fail authentication and redirect to a settings.SOCIALAUTH_NEWUSER_REGISTRATION page which would use 'sociateauth_create_begin' URL to register the user.

Why? When providing multiple authentication providers as an option, People may forget which authentication provider they used to register the account. In such cases someone accidentally cricking the wrong authentication provider my endup creating/registering a new account.

Anyway the Idea is that if settings.SOCIALAUTH_NEWUSER_REGISTRATION is set, then socialauth_begin URL will authenticate the user but not automatically create a new account. It will instead direct him to the Signup/Registration page at settings.SOCIALAUTH_VERIFY_REGISTRATION='socialauth_create_ begin'
This URL can then take that information, show the user and confirm that he wants to create a new account before actually creating it.

Does this feature exist? Am I missing it? All I am trying to do is accidentally create multiple accounts for the same user.