Giter Site home page Giter Site logo

ramyadeveloper5 / enhanced-authentication-api Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 6.61 MB

User Management System for Enhanced Authentication API

JavaScript 100.00%
auhentication error-handling expressjs mongodb nodejs postman-api secure usermanagementsystem validation authorization visual-studio-code

enhanced-authentication-api's Introduction

Enhanced-Authentication-API.

User Management System for Enhanced Authentication API

Procedure

To include your port and mongodb url in the.env file.

  1. PORT - USER_PORT
  2. MONGODB_URL - USER_DATABASE_URL

DEPENDENCIES

  1. express
  2. nodemon
  3. uuid
  4. mongoose
  5. body-parser
  6. dotenv
  7. cors
  8. bcryptjs
  9. jsonwebtoken
  10. multer

Explanation of Enhanced Authentication API System

1. Introduction

• The present article describes the features, implementation, and usage guidelines of the Enhanced Authentication API for User Profile Management System. Users of the system can create accounts, log in, edit their profiles, and choose whether to make them public or private. Additionally, admin users can access both private and public profiles with this functionality.

• The backend of the User Profile Management System is constructed with Node.js. By adding the ability for users to designate their profiles as private or public, it improves the current authentication system. Normal users can only access public profiles, but admin users can access both private and public profiles thanks to authorization checks implemented by the system.

2. Technologies Used

• Node.js

• Express.js

• MongoDB

• bcrypt for password hashing

• JSON Web Tokens (JWT) for authentication

• API Testing – Postman

3. Tools Used

• Visual Studio Code

• Postman

4. API Endpoints

• User Registration

• User Login

• User Login Token Verify

• User logout

• Admin Registration

• Admin Login

• Admin Login Token Verify

• Admin View Both the Profile (Public and Private)

• Get User Profile

• Edit User profile

• Image Upload

• Normal User View only Public User

5. Authentication and Authorization

• Because of their email address and password, users can register and log in.

• After successful authentication, JWT tokens are created and used for incoming requests.

• Normal users can only access public profiles; authorization checks are used to grant admin users access to both public and private profiles.

6. Public and Private Profiles

• Users have the option of keeping their profiles private or public.

• All users have access to public profiles.

• Only authorized users (admin users and the profile owner) can access private profiles.

7. Handling Errors and Validation

• The system as a whole implements proper error handling to deliver informative error messages.

• Validating input is done to make sure the data is secure and preserved.

8. Conclusion

Users can manage their profiles on a safe and convenient platform with the help of the Enhanced Authentication API for User Profile Management System. The system guarantees user data privacy and restricts access to authorized users only by following the given user stories and requirements. The documentation for the API and hosting options improve accessibility and usability.

enhanced-authentication-api's People

Contributors

ramyadeveloper5 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.