https://github.com/shubham-sakunde/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.
https://github.com/shubham-sakunde/user-authentication-system
apache authentication-backend laravel11x mongodb mvc nosql-database postman-testing rest-api
Last synced: about 2 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/shubham-sakunde/user-authentication-system
- Owner: Shubham-sakunde
- Created: 2024-09-02T05:18:09.000Z (over 1 year ago)
- Default Branch: Alpha
- Last Pushed: 2024-09-13T03:26:27.000Z (over 1 year ago)
- Last Synced: 2025-03-16T09:58:34.485Z (about 1 year ago)
- Topics: apache, authentication-backend, laravel11x, mongodb, mvc, nosql-database, postman-testing, rest-api
- Language: PHP
- Homepage:
- Size: 83 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
<<<<<<< HEAD
## 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:
- [Simple, fast routing engine](https://laravel.com/docs/routing).
- [Powerful dependency injection container](https://laravel.com/docs/container).
- Multiple back-ends for [session](https://laravel.com/docs/session) and [cache](https://laravel.com/docs/cache) storage.
- Expressive, intuitive [database ORM](https://laravel.com/docs/eloquent).
- Database agnostic [schema migrations](https://laravel.com/docs/migrations).
- [Robust background job processing](https://laravel.com/docs/queues).
- [Real-time event broadcasting](https://laravel.com/docs/broadcasting).
Laravel is accessible, powerful, and provides tools required for large, robust applications.
## Learning Laravel
Laravel has the most extensive and thorough [documentation](https://laravel.com/docs) 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](https://bootcamp.laravel.com), where you will be guided through building a modern Laravel application from scratch.
If you don't feel like reading, [Laracasts](https://laracasts.com) 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](https://partners.laravel.com).
### Premium Partners
- **[Vehikl](https://vehikl.com/)**
- **[Tighten Co.](https://tighten.co)**
- **[WebReinvent](https://webreinvent.com/)**
- **[Kirschbaum Development Group](https://kirschbaumdevelopment.com)**
- **[64 Robots](https://64robots.com)**
- **[Curotec](https://www.curotec.com/services/technologies/laravel/)**
- **[Cyber-Duck](https://cyber-duck.co.uk)**
- **[DevSquad](https://devsquad.com/hire-laravel-developers)**
- **[Jump24](https://jump24.co.uk)**
- **[Redberry](https://redberry.international/laravel/)**
- **[Active Logic](https://activelogic.com)**
- **[byte5](https://byte5.de)**
- **[OP.GG](https://op.gg)**
## Contributing
Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions).
## Code of Conduct
In order to ensure that the Laravel community is welcoming to all, please review and abide by the [Code of Conduct](https://laravel.com/docs/contributions#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](mailto:taylor@laravel.com). All security vulnerabilities will be promptly addressed.
## License
The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).
=======
# 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