Skip to content

Conversation

@16aryank
Copy link

@16aryank 16aryank commented Dec 9, 2025

Description:

This PR adds Google OAuth support to the project and includes corresponding test cases. The following changes were made:

Frontend:

Minor updates to login pages to integrate Google OAuth buttons.

Settings:

Updated settings_global.py placeholders to include the ENABLE_SOCIAL_LOGIN flag.

Note: Actual OAuth credentials (client ID/secret) are intentionally excluded from the repo as the settings_global.py file is in .gitignore. These must be configured by project administrators.

URLs:

Added necessary URL patterns for Google OAuth login.

Tests:

Added wger/core/tests/test_google_oauth.py with unit tests for:

Presence of the OAuth URLs.

Feature flag definition.

Ensuring existing login functionality is unaffected.

Tests currently use placeholders to prevent exposing real credentials.

Rationale:

Google OAuth integration enhances user authentication options.

Added tests support regression checking and ensure the feature flag mechanism is working.

Settings placeholders maintain security and allow project administrators to configure credentials safely.

Additional Notes:

All OAuth-related pages require setup by project administrators; no sensitive credentials are included in the repository.

Tests run successfully with placeholders but will require valid credentials for full end-to-end verification.

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