Excerpts from Jerome Leclanche's message of 2012-08-20 23:59:11 -0300:
> There's no form, just a "Sign in with Facebook" button. The issue is withMaybe I'm a bit lost with your problem. Is this app based on some web framework
> the actual authentication - Should the interaction with facebook be
> implemented on the mobile app, or as an API with django-social-auth? If
> it's implemented on the phone, I run into the issue of not knowing anything
> about the oauth request that happened. How would I figure that out?
(Sencha, Phonegap, JQMobile, etc)? If that's the case, then why not redirect
the user to /login/facebook/? Once the user is authenticated, the calls to the
API will be authenticated.
Or your could implement the sign in process in the mobile app, it's not hard,
just a redirect and a call to facebook API to retrieve some data, once you got
the user id from Facebook, you can call your API to authenticate using that
user id. This might not be secure since it could be easy to spoof other users
IDs easily.
{
status: 'connected',
authResponse: {
accessToken: '...',
expiresIn:'...',
signedRequest:'...',
userID:'...'
}
}social_auth_backend = get_backend('facebook', request, '')user = social_auth_backend.do_auth(access_token)
def register_by_access_token(request, *args, **kwargs):
access_token = request.GET.get('access_token')
backend = get_backend(settings.AUTHENTICATION_BACKENDS,'facebook')
social_auth_backend = backend()
user = social_auth_backend.do_auth(access_token)
if user and user.is_active:
return user.username
--
You received this message because you are subscribed to the Google Groups "Django Social Auth" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-social-a...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to a topic in the Google Groups "Django Social Auth" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-social-auth/zxOVzuQdlDQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-social-a...@googlegroups.com.
To unsubscribe from this group and all its topics, send an email to django-social-auth+unsub...@googlegroups.com.
> >> django-social-auth+unsub...@googlegroups.com <javascript:>.
--
You received this message because you are subscribed to the Google Groups "Django Social Auth" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-social-a...@googlegroups.com.
> > > >>> > >> django-social-auth+unsub...@googlegroups.com <javascript:><javascript:>.
> > > > > >>> > >> django-social-auth+unsub...@googlegroups.com<javascript:><javascript:><javascript:>.
> > > > > > > >>> > >> django-social-auth+unsub...@googlegroups.com<javascript:><javascript:><javascript:><javascript:>.
--
You received this message because you are subscribed to the Google Groups "Django Social Auth" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-social-a...@googlegroups.com.
No. Why ?
> > email to django-social-au
No. Why ?
> > email to django-social-au