wagnerdelima / drf-social-oauth2

drf-social-oauth2 makes it easy to integrate Django social authentication with major OAuth2 providers, i.e., Facebook, Twitter, Google, etc.
https://drf-social-oauth2.readthedocs.io/en/latest/
MIT License
271 stars 34 forks source link

What are SOCIAL_AUTH_GOOGLE_OAUTH2_KEY and SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET? #151

Closed tungvv318 closed 1 year ago

tungvv318 commented 1 year ago

I'm a newbie with drf-social-oauth2. I have questions likes:

1, SOCIAL_AUTH_GOOGLE_OAUTH2_KEY and SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET is client_id and client_sercet in google console and is client_id and client_secret in frontend passing for backend? What are the purposes of its in the application?

2, from what I read in the code looks like the client_id and client_secret that the frontend sends to the backend just need to be the same as the client_id and client_secret in the Application table?

Note: same question with the bro in link stackoverflow

wagnerdelima commented 1 year ago

I have written instructions on how to proceed with google here: https://github.com/wagnerdelima/drf-social-oauth2#google-example.

Good luck.