You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! Thanks for your work!
But I need help of community.
In my Django project with django-rest-framework, we use JWT authentication and want to implement the social login by google. So, I installed and configured drf-social-oauth2 with backend google-oath2 in the project as shown in docs.
And if I follow as per our requirements we need the user to redirect to google-oauth2 page and login with credentials and also our app to access data and create user. This achieved by http://localhost:8000/sign_in/google API it redirect to http://localhost:8000/complete/google-oauth2/ with necessary parameters and social user with django user created and redirect to LOGIN_REDIRECT_URL with session authentication.
This part is working and user is created successfully.
Redirection is working fine. Reverse redirection with user creation works fine too. But how do I send data to the api in the documentation to get an authorization token on the server? (We do not have session authorization).
Please need your help to understand the process, I read a lot and watched tutorials but didn't get as expected.
If you need any detail please ask.
The text was updated successfully, but these errors were encountered:
Hi! Thanks for your work!
But I need help of community.
In my Django project with django-rest-framework, we use JWT authentication and want to implement the social login by google. So, I installed and configured drf-social-oauth2 with backend google-oath2 in the project as shown in docs.
settings.py
urls.py
And now the question itself.
How to implement redirection with the necessary data after user authorization on an external resource?
I have a user's entry point with a redirect to google authorization
method
And if I follow as per our requirements we need the user to redirect to google-oauth2 page and login with credentials and also our app to access data and create user. This achieved by
http://localhost:8000/sign_in/google
API it redirect tohttp://localhost:8000/complete/google-oauth2/
with necessary parameters and social user with django user created and redirect to LOGIN_REDIRECT_URL with session authentication.This part is working and user is created successfully.
Redirection is working fine. Reverse redirection with user creation works fine too. But how do I send data to the api in the documentation to get an authorization token on the server? (We do not have session authorization).
Please need your help to understand the process, I read a lot and watched tutorials but didn't get as expected.
If you need any detail please ask.
The text was updated successfully, but these errors were encountered: