uprm-inso4101-2024-2025-s1 / semester-project-campus-resource-and-event-management

semester-project-campus-resource-and-event-management created by GitHub Classroom
9 stars 0 forks source link

{Documentation}【Sub-Issue】Install and configure the chosen password hashing and JWT libraries. #305

Open WilsonMorales8 opened 1 week ago

WilsonMorales8 commented 1 week ago

Objective: To implement and configure Flask libraries required for secure password hashing and JWT-based authentication, ensuring the application is equipped to handle user credentials and session management securely.

Details:

  1. Library Installation:

    • Use pip to install Flask-Bcrypt and Flask-JWT-Extended for password hashing and token-based session management.
  2. Library Configuration:

    • Initialize bcrypt and JWT within the Flask application by importing and setting up configurations:

    • Configure the JWT secret key in the app settings (app.config['JWT_SECRET_KEY'] = 'your_secret_key') to ensure tokens are securely signed.

    • Initialize the bcrypt and JWT libraries in the Flask app for integration with user sign-up and sign-in routes.

Format and Styling:

Next Steps: