Re: how to use oauth2client in django 2.0 for google login new user and exiting user

2019-01-15 Thread Manas Nikam
Create a view to accept the auth token from Google and pass it to your
authentication backend (Register the GoogleAuthBackend in settings first)
verify the token in the backend and return the user from db if email exists
else create a new user and return the token and pass this user object to
login function from django.contrib.auth.login function and start his
session in there

On Wed, Jan 16, 2019, 12:18 PM arvind yadav  how to use google  oauth2client for new user and exiting user  in django
> help help me any share any link
>
> --
> 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+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/501631fa-85bc-4364-8a11-23ce519be57c%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAF%2BYYc5J8U9nxk4u%3D1zn2d9TugByT3Xw9TXZR%2BPg7obPn4O8aQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


how to use oauth2client in django 2.0 for google login new user and exiting user

2019-01-15 Thread arvind yadav
how to use google  oauth2client for new user and exiting user  in django 
help help me any share any link

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/501631fa-85bc-4364-8a11-23ce519be57c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.