Skip to content

Add Third-Party authentication for Login and Register with Google and Microsoft accounts #190

Description

@sania-2912

Third-Party Authentication (Google & Microsoft)
This feature integrates secure OAuth 2.0-based third-party authentication into the Login and Register workflows, enabling users to sign in or create an account using their existing Google or Microsoft credentials.

Instead of manually entering an email and password, users can authenticate through a familiar provider, significantly reducing friction during account creation and login.

When a user selects "Continue with Google" or "Continue with Microsoft", they are redirected to the respective provider’s consent screen to approve access. Upon successful authentication, the provider returns a verified identity token to the backend, which is validated and used to create or update the user profile in the application’s database.

Image Image

Implementation Outline:

Frontend
Add “Continue with Google” and “Continue with Microsoft” buttons on login and registration pages.
Initiate OAuth flow when clicked.

Backend
Implement OAuth 2.0 endpoints for Google and Microsoft.
Validate tokens using provider APIs.
Link authenticated accounts to existing users or create new user entries.

Security
Use HTTPS for all authentication flows.
Store only minimal user data (name, email, profile picture) as per provider’s policy.
Refresh tokens securely for session continuity.


⚠️ Comment on this issue to get it assigned before starting your work. Unassigned PRs will not be counted under Commit and Conquer.

Metadata

Metadata

Assignees

Labels

MediumCarries 10 points under Commit and ConquerenhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions