sef-global / scholarx-backend

This is the backend of the ScholarX
MIT License
8 stars 28 forks source link

Implement linkedin authentication with Passport js #57

Open anjula-sack opened 11 months ago

anjula-sack commented 11 months ago

Description: In our ongoing efforts to bolster the security and user experience of our application, we are expanding our authentication capabilities to include LinkedIn Authentication. We'll be utilizing Passport.js and JWT (JSON Web Tokens) to facilitate this seamless and secure login method. This enhancement will empower users to effortlessly access our platform using their LinkedIn accounts while ensuring the safety of their credentials through JWT token-based session management.

Tasks:

  1. Incorporate the necessary dependencies for Passport.js and JWT in the project to facilitate LinkedIn Authentication.
  2. Configure Passport.js to utilize the LinkedIn strategy, enabling authentication through LinkedIn accounts.
  3. Develop a user registration endpoint, ensuring the creation of new accounts adheres to robust security measures.
  4. Establish a LinkedIn login endpoint that validates users via their LinkedIn accounts and generates JWT tokens.
  5. Implement a protected endpoint that mandates a valid JWT token for access, reinforcing the security of sensitive areas.
  6. Set up middleware to authenticate incoming requests using Passport.js and the JWT strategy.
  7. Implement a user-friendly logout feature to invalidate tokens or sessions as needed.
  8. Create a robust password reset functionality, catering to users who require password retrieval.

Acceptance Criteria:

Additional Information:

Related Dependencies or References:

YoshithaRathnayake commented 11 months ago

@anjula-sack Will I able to work on an issue like this? Want JS?

dilankavishka commented 2 weeks ago

Shall I work on this issue please? @anjula-sack

anjula-sack commented 2 weeks ago

Shall I work on this issue please? @anjula-sack

sure go ahead