Skip to content

Google provider - #1067

Closed
shivanshshri wants to merge 3 commits into
alphaonelabs:mainfrom
shivanshshri:Google-Provider
Closed

shivanshshri wants to merge 3 commits into
alphaonelabs:mainfrom
shivanshshri:Google-Provider

Conversation

@shivanshshri

@shivanshshri shivanshshri commented Sep 10, 2026 •

Copy link
Copy Markdown

Description

Added Google OAuth login functionality to the application's login page, allowing users to continue authentication using their Google account.

Changes Made

  • Added allauth.socialaccount to the installed Django applications.

  • Added allauth.socialaccount.providers.google to enable Google authentication.

  • Added a "Continue with Google" button to the login and signup page.

  • Integrated the button with Django Allauth using:

    {% provider_login_url 'google' %}
  • Added a "Or continue with" separator to distinguish Google authentication from the existing login method.

  • Added the Google icon using Font Awesome.

  • Styled the Google login button to support both light and dark modes.

  • Configured the Google OAuth redirect URI for the authentication callback.

User Flow

  1. User opens the login page.
  2. User clicks Continue with Google.
  3. User is redirected to Google's authentication page.
  4. After successful authentication, Google redirects the user back to the application.
  5. Django Allauth handles the authentication flow.

Testing

  • Verified that the Google login option appears correctly on the login page.
  • Tested the Google OAuth authentication flow locally.
  • Verified the Google OAuth callback/redirect URI configuration.

Security

  • Google OAuth credentials are kept in the application's configuration/environment and are not committed to the repository.
Screen.Recording.2026-09-10.231601.mp4

Summary

Adds Google OAuth support through Django Allauth.

  • Enables the Google social account provider.
  • Adds “Continue with Google” buttons to the login and signup pages.
  • Adds separators and Google icons for the social login options.
  • Adds pyjwt and enables Poetry virtual environment creation.

This gives users an alternative authentication flow through Google while preserving local authentication.

@github-actions

Copy link
Copy Markdown
Contributor

👀 Peer Review Required

Hi @shivanshshri! This pull request does not yet have a peer review.

Before this PR can be merged, please request a review from one of your peers:

  • Go to the PR page and click "Reviewers" on the right sidebar.
  • Select a team member or contributor to review your changes.
  • Once they approve, this reminder will be automatically removed.

Thank you for contributing! 🎉

@github-actions github-actions Bot added the files-changed: 6 PR changes 6 files label Sep 10, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🚚 This Repository Is Moving

Hi @shivanshshri, thank you for your contribution!

We are in the process of migrating most of the logic from this repository to our new repository: alphaonelabs/learn.

What this means for your PR

Please do not merge or continue work here. Instead:

  1. Review the alphaonelabs/learn repository and familiarize yourself with its tech stack.
  2. Adapt your changes to work with that codebase.
  3. Open a new Pull Request in alphaonelabs/learn.

This PR has been automatically closed. Once you have opened your PR in the new repository, feel free to reference it here.

Thank you for your understanding and continued support! 🙏

@github-actions github-actions Bot closed this Sep 10, 2026
@coderabbitai

coderabbitai Bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

Review Change StackReview Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository: alphaonelabs/coderabbit/.coderabbit.yaml

Review profile: ASSERTIVE

Plan: Advanced

Run ID: cd4c8ef1-f8c5-4ee0-a485-a691499c11a4

📥 Commits

Reviewing files that changed from the base of the PR and between 7a682c2 and ed431ba.

⛔ Files ignored due to path filters (1)
  • poetry.lock is excluded by !**/*.lock, !**/*.lock
📒 Files selected for processing (5)
  • poetry.toml
  • pyproject.toml
  • web/settings.py
  • web/templates/account/login.html
  • web/templates/account/signup.html

Walkthrough

The project now enables Google social authentication through django-allauth. It adds the required dependency and provider configuration. Login and signup templates include Google authentication links.

Changes

Google authentication

Layer / File(s) Summary
Authentication dependencies and provider setup
poetry.toml, pyproject.toml, web/settings.py
Poetry now creates virtual environments. The project adds pyjwt. Django registers the django-allauth social account and Google provider apps.
Google login template actions
web/templates/account/login.html, web/templates/account/signup.html
Both templates load the socialaccount tags and add Google login links using provider_login_url 'google'.

Estimated code review effort: 2 (Simple) | ~10 minutes

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

files-changed: 6 PR changes 6 files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant