Judahh / mauth

Authentication and Authorization Middleware

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MAuth

Publish npm version npm downloads

Authentication and Authorization Middleware

Installation

This is a Node.js module available through the npm registry.

Before installing, download and install Node.js.

If this is a brand new project, make sure to create a package.json first with the npm init command or yarn init command.

Installation is done using the npm install command or yarn add command:

$ npm install @midware/mauth

or

$ yarn add @midware/mauth

Features

  • Ready to use authorization middleware
  • Ready to use authentication middleware
  • Simple implementation

Tests

To run the test suite, first install the dependencies, then run npm test:

$ npm install
$ npm test

or

$ yarn
$ yarn test

Environment Variables:

GOOGLE_CLIENT_ID = Google Client Id AUTH_HOST = Auth host URL to get keys JWT_PRIVATE_KEY = RSA Private Key to generate JWT JWT_PUBLIC_KEY = RSA Public Key to get JWT SERVICE_NAME = Credential id to connect to Auth host SERVICE_KEY = Credential KEY to connect to Auth host SERVICE_NAME = Project name INSTANCE = Project instance name

People

The original author of MAuth is Judah Lima

List of all contributors

About

Authentication and Authorization Middleware

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:TypeScript 100.0%