Skip to content

This project is a secure User Authentication system built with Laravel 11 and MongoDB. It includes essential features like user signup, login, logout, and password update. Designed with industry best practices, the system uses RESTful APIs and is secured with Bearer Token-based Authentication via Laravel Sanctum.

Notifications You must be signed in to change notification settings

Shubham-sakunde/User-Authentication-System

Repository files navigation

<<<<<<< HEAD

Laravel Logo

Build Status Total Downloads Latest Stable Version License

About Laravel

Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:

Laravel is accessible, powerful, and provides tools required for large, robust applications.

Learning Laravel

Laravel has the most extensive and thorough documentation and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework.

You may also try the Laravel Bootcamp, where you will be guided through building a modern Laravel application from scratch.

If you don't feel like reading, Laracasts can help. Laracasts contains thousands of video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library.

Laravel Sponsors

We would like to extend our thanks to the following sponsors for funding Laravel development. If you are interested in becoming a sponsor, please visit the Laravel Partners program.

Premium Partners

Contributing

Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the Laravel documentation.

Code of Conduct

In order to ensure that the Laravel community is welcoming to all, please review and abide by the Code of Conduct.

Security Vulnerabilities

If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via taylor@laravel.com. All security vulnerabilities will be promptly addressed.

License

The Laravel framework is open-sourced software licensed under the MIT license.

User-Authentication-System

This project is a secure User Authentication system built with Laravel 11 and MongoDB. It includes essential features like user signup, login, logout, and password update. Designed with industry best practices, the system uses RESTful APIs and is secured with Bearer Token-based Authentication via Laravel Sanctum.

User Authentication API

Overview

This project is a secure and scalable User Authentication system developed with Laravel 11 and MongoDB. It features essential authentication functionalities such as user signup, login, logout, and password update. The API follows industry standards and is secured with Bearer Token-based Authentication, utilizing Laravel Sanctum.

Features

  • Signup API: Allows new users to register by providing an email and password.
  • Login API: Authenticates users and issues a Bearer Token for session management.
  • Logout API: Securely logs out users by revoking their Bearer Token.
  • Update Password API: Enables users to update their password securely.

Technologies Used

  • Laravel 11: A PHP framework following the MVC pattern, known for its elegance and simplicity.
  • MongoDB: A flexible and scalable NoSQL database.
  • Laravel Sanctum: Provides API token authentication without the complexity of OAuth.
  • Postman: Used for API testing and documentation.
  • Apache Server: Serves the application in a stable environment.
  • REST APIs: Ensures standardized and predictable endpoints.

Key Components

  • Bearer Token-based Authentication: Ensures secure API access, with tokens generated during login and revoked upon logout.
  • Request Validation: Comprehensive validation of API requests to ensure data integrity.
  • Exception Handling: Graceful handling of errors, with clear and consistent API responses.

API Endpoints

  1. POST /signup

    • Registers a new user with email and password.
    • Validates input to ensure data integrity.
  2. POST /login

    • Authenticates the user and returns a Bearer Token.
    • Validates the email and password.
  3. POST /logout

    • Revokes the user's Bearer Token, logging them out of the system.
    • Requires authentication.
  4. POST /update-password

    • Allows the user to update their password.
    • Requires authentication.

origin/main

About

This project is a secure User Authentication system built with Laravel 11 and MongoDB. It includes essential features like user signup, login, logout, and password update. Designed with industry best practices, the system uses RESTful APIs and is secured with Bearer Token-based Authentication via Laravel Sanctum.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published