Implemented Oauth #2

Open
Soundcreates wants to merge 1 commits from Soundcreates/Travel-policy-:GOAuth into main
First-time contributor

Issue

Google OAuth authentication was not implemented in the application.

Changes Made

  • Implemented Google authentication in the backend using Passport.js by adding a dedicated passport_service.js.
  • Added OAuth initialization and callback controllers in authController.js.
  • Integrated Google OAuth with the frontend authentication flow.
  • Ensured user roles are assigned correctly during OAuth login:
  • Users logging in via the applicant login page are assigned the applicant designation.
  • All other OAuth logins are assigned the faculty designation.

Testing

  • Verified the complete OAuth flow end-to-end.

  • Confirmed correct role assignment based on the login entry point.

  • Attached a video demonstrating the successful authentication flow.

Please let me know if there are any issues, improvements, or edge cases that need to be addressed.
Thank you!

**Issue** Google OAuth authentication was not implemented in the application. **Changes Made** - Implemented Google authentication in the backend using Passport.js by adding a dedicated passport_service.js. - - Added OAuth initialization and callback controllers in authController.js. - - Integrated Google OAuth with the frontend authentication flow. - - Ensured user roles are assigned correctly during OAuth login: - - Users logging in via the applicant login page are assigned the applicant designation. - - All other OAuth logins are assigned the faculty designation. **Testing** - Verified the complete OAuth flow end-to-end. - Confirmed correct role assignment based on the login entry point. - Attached a video demonstrating the successful authentication flow. Please let me know if there are any issues, improvements, or edge cases that need to be addressed. Thank you!
Soundcreates added 1 commit 2026-01-02 00:53:15 +05:30
Author
First-time contributor

Fixes Issue #1

Fixes Issue #1
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u GOAuth:Soundcreates-GOAuth
git checkout Soundcreates-GOAuth
Sign in to join this conversation.