Skip to content

Latest commit

 

History

History
16 lines (13 loc) · 1.12 KB

GOOGLE-OAUTH2.md

File metadata and controls

16 lines (13 loc) · 1.12 KB

Google OAuth2

Plio backend uses DRF Social OAuth2 package to support various social media sign in functionalities. This document covers step by step details on how to get the sign-in functionality running.

Set up Google OAuth2 Credentials

  1. Use the Plio frontend Google-OAuth2 guide to configure Google Developer Console and get the Client ID and Client Secret.
  2. Update your .env file and set GOOGLE_OAUTH2_CLIENT_ID and GOOGLE_OAUTH2_CLIENT_SECRET variables from the copied values in the above step:
    GOOGLE_OAUTH2_CLIENT_ID="your_client_id"
    GOOGLE_OAUTH2_CLIENT_SECRET="your_client_secret"

Set up API client credentials

Refer to the REST API guide to create API client credentials from the Django Admin Dashboard.