1.0.6 • Published 7 years ago

@first-lego-league/ms-authentication v1.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
7 years ago

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
1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago