@first-lego-league/ms-authentication

1.0.6 • Public • Published

MS-Authentication

Authentication library using the Identity Provider module based on the MS (Module Standard)

Usage

First, install the package:
npm install @first-lego-league/ms-authentication

Or use yarn (prefered):
yarn add @first-lego-league/ms-authentication

After the installation, you just need import it and add it to use it as a router. everything route that fits this router will be protected by the IdP:

app.use(require('@first-lego-league/ms-authentication').authenticationMiddleware)

And for dev servers (Faking an authentication cookie):

app.use(require('@first-lego-league/ms-authentication').authenticationDevMiddleware)

Development

  1. Fork this repository
  2. make some changes
  3. create a Pull Request
  4. Wait for a CR from the code owner
  5. make sure everything is well
  6. merge

A few things to notice while developing:

  • Use yarn not npm
  • Follow javascript standard as described here
  • Keep the package lightweight and easy to use
  • Don't break API if not neccessary
  • Be creative and have fun

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.60latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.60
1.0.50
1.0.40
1.0.30
1.0.20
1.0.10
1.0.00

Package Sidebar

Install

npm i @first-lego-league/ms-authentication

Weekly Downloads

0

Version

1.0.6

License

MIT

Unpacked Size

56.5 kB

Total Files

7

Last publish

Collaborators

  • yosikarl
  • taltaub22
  • idanstark42
  • roy999
  • alanggreen