Skip to content

Comments

[3] – Migrate state & code swap to the backend#20

Open
dvjsharma wants to merge 1 commit intoa2i-code-For-Govstack:django-backendfrom
dvjsharma:feat/oauth
Open

[3] – Migrate state & code swap to the backend#20
dvjsharma wants to merge 1 commit intoa2i-code-For-Govstack:django-backendfrom
dvjsharma:feat/oauth

Conversation

@dvjsharma
Copy link

Description

This PR migrates the code and state swap logic to the backend and removes the frontend dependency for the same.

How to test

  • Add the FRONTEND_REDIRECT_URL value in the .env file. The server will redirect to this URL with an access token in the query param.
  • Get the authorization_url with redirect URL as {domain}/api/v1/live/google-oauth2/callback/.
  • Navigate to this URL and sign in using your google account.
  • You will be redirected to the forntend URL along with an access token for that user in the query param.

Signed by Divij Sharma

CC @Sanchay-T

Signed-off-by: Divij Sharma <divijs75@gmail.com>
dvjsharma added a commit to dvjsharma/sp-service-solutions-api-Django that referenced this pull request Sep 18, 2024
feat(OAuth): Add frontend redirect URI and handle exceptions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant