AV-Lab / AutoEye

An open-source solution in development, tailored for streamlined vehicle tracking and management. Whether overseeing a fleet of vehicles or keeping tabs on individual rides for personal purposes, AutoEye will offer live location updates, empowering you to stay on top of things with ease.
https://avlab.io/
MIT License
1 stars 0 forks source link

Implement JWT Authentication #1

Closed mohddotio closed 1 month ago

mohddotio commented 1 month ago

Description:

Considering the growing security concerns and the need for scalability, it's imperative to implement JSON Web Token (JWT) authentication.

Objective:

The primary objective of this issue is to enhance the security, scalability, and user experience by implementing JWT as a main authentication method.

Benefits of JWT Authentication:

Implementation Plan:

  1. Integration with Authentication Service: Integrate AutoEye with an authentication service capable of issuing JWTs upon successful authentication, supporting industry-standard algorithms for token signing and verification.
  2. Token Generation and Validation Middleware: Implement middleware to generate JWTs upon user authentication and validate incoming JWTs for protected routes, enforcing token expiration, signature verification, and other security checks.
  3. Secure Token Storage: Ensure secure storage of JWTs on the client-side, using HttpOnly cookies for web applications and secure keychain storage for mobile applications. Implement mechanisms for token revocation and renewal to mitigate token misuse.

Acceptance Criteria:

Additional Information:

mohddotio commented 1 month ago

Committed enhancement to develop branch.

mohddotio commented 1 month ago

Screenshot from 2024-05-28 16-02-10