Skip to content

Feature Request: Add "Sign in with Google" option for user authentication #2104

@Prateekiiitg56

Description

@Prateekiiitg56

Use case

Hi 👋,
First of all, thank you for this amazing project! I’ve been exploring wger, and it’s an impressive fitness and nutrition manager.

I’d like to suggest adding an option to sign in using Google (OAuth 2.0) alongside the existing username/password method.

Why this feature would be useful:

Simplifies user onboarding — users can log in instantly with their Google account.

Eliminates the need to remember extra credentials.

Improves adoption for non-technical users and mobile users.

Increases security by leveraging Google’s authentication infrastructure.

Proposal

Suggested Implementation Details:

Use django-allauth or python-social-auth for integrating Google OAuth.

Add configuration options in settings.py for Google Client ID and Secret.

Allow enabling/disabling social login via environment variables for self-hosted users.

Ensure compatibility with Docker deployments.

Additional Context

References:

Django Allauth Docs: https://django-allauth.readthedocs.io/en/latest/providers.html#google

Google OAuth 2.0 Setup: https://developers.google.com/identity/protocols/oauth2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for Enhancement.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions