session is missing on httpresponse redirect to google oauth
here is my code
@login_required
def gpconnect(request):
if 'code' in request.REQUEST:
# insert google data to db
return render_to_response('social/google.html')
else:
rty="https://accounts.google.com/o/oauth2/auth?client_id="+GP_CLIENT_ID+"&response_type=code"
rty += "&scope=https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email htps://www.google.com/m8/feeds/contacts/&redirect_uri="+GP_REDIRECT_URI+"&state=1235dfghjkf123"
return HttpResponseRedirect(rty)
this is working for few and not for few users.
its going to google in the first call by satisfying login required true.
but the user data is missing when the user come back from google after authorizing our app and raising login_required.
please help me with any idea.
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/a5ea5d1d-3dff-48a9-955f-dcff2e3b96ce%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home