Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make extending SOCIAL_AUTH_PIPELINE easier #99

Closed
geweb7 opened this issue Nov 21, 2013 · 1 comment
Closed

Make extending SOCIAL_AUTH_PIPELINE easier #99

geweb7 opened this issue Nov 21, 2013 · 1 comment

Comments

@geweb7
Copy link

geweb7 commented Nov 21, 2013

Now we need to inlude all the default

SOCIAL_AUTH_PIPELINE = (
'social.pipeline.social_auth.social_details',
'social.pipeline.social_auth.social_uid',
'social.pipeline.social_auth.auth_allowed',
'social.pipeline.social_auth.social_user',
'social.pipeline.user.get_username',
'social.pipeline.user.create_user',
'social.pipeline.social_auth.associate_user',
'social.pipeline.social_auth.load_extra_data',
'social.pipeline.user.user_details',
'myproject.models.user_profile_data',
)

into settings to add a single line.

But the default SOCIAL_AUTH_PIPELINE can be changed in the future.
So it would be better to provide some option to add (or remove) just one line.
Something like:
SOCIAL_AUTH_PIPELINE += ('myproject.models.user_profile_data',)

@omab
Copy link
Owner

omab commented Nov 21, 2013

@russian-master, now you can do:

from social.pipeline import DEFAULT_AUTH_PIPELINE

SOCIAL_AUTH_PIPELINE = DEFAULT_AUTH_PIPELINE + ('myproject.models.user_profile_data',)

@omab omab closed this as completed Nov 21, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants