/identity-server

Authentication and Authorization Server.

Primary LanguageJavaScript

Identity Server

Authentication and Authorization Server.

Getting Started

These steps will get you a copy of the project up and running for development and testing purposes.

Installation

  1. Install Nodejs latest stable version
  2. Install npm latest stable version
  3. Install mongoDB latest stable version
  4. Install redis latest stable version
  5. Optional Step ⇒ You can install MongoDB Compass [any user interface application for MongoDB] as it offers a user interface for dealing with the database
  6. Clone the Project
  7. Run the following commands:
    npm install
    cp .env.example .env
    
  8. write required variables in .env

Usage

  1. for running localy
npm run start
  1. for testing
npm run test

Running Using Docker

  1. write required variables in docker-compose.yml
  2. Run the following commands:
docker-compose up

Built With

  1. Nodejs
  2. Redis
  3. Mongodb

Server Features

  • We can create user.
  • We can give user permissions on specific action.
  • We can revoke permissions from user on specific action.
  • Server can authenticate user to access a system.
  • Server can check user's permissions before do an action.
  • Server can force user to be logout from system.

Todo

  • increase test coverage
  • handle owasp vulnerabilities
  • deploy app
  • dockerize app
  • secure creation services
  • implement refresh token
  • convert postman documentation to swagger documentation