На 2.04.2014 02:02, Patrick Paul написа:
> Did you figure out how to debug anything? I can't get an OpenID backend
> working and can't find any exceptions/errors in logs or messages app.
>
Hi Patrick,
I didn't make any success with debugging. What I did is start from scratch with
a clean Django project and add Python Social Auth (instead of DSA). I also
stripped down the PIPELINE and left only with:
SOCIAL_AUTH_PIPELINE = (
'social.pipeline.social_auth.social_details',
'social.pipeline.social_auth.social_uid',
'social.pipeline.social_auth.auth_allowed',
'myapp.pipeline.store_user_details',
)
where store_user_details fetches name, email, etc. from the social backend and
stores it in a custom model, not the default User one. Also skips the
UserSocialAuth model.
It works for me although I have discovered something else, which may have been
the cause for previous errors.
When testing from multiple facebook accounts I've deleted the application from
the facebook account and tried to re-use it again. At this time I started
getting some errors, although I couldn't figure out why.
I still continued to get the information from the backend so I've modified my
app to just ignore this and redirect the user back to the website.
--
Alex