Authentication and Authorization Middleware
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/mauthor
$ yarn add @midware/mauth- Ready to use authorization middleware
- Ready to use authentication middleware
- Simple implementation
To run the test suite, first install the dependencies, then run npm test:
$ npm install
$ npm testor
$ yarn
$ yarn testGOOGLE_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
The original author of MAuth is Judah Lima