Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@first-lego-league/identity-provider

Package Overview
Dependencies
Maintainers
5
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@first-lego-league/identity-provider

Identity Provider using jwt-redirection

  • 3.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
5
Created
Source

npm codecov Build status GitHub

David Dependency Status David Dev Dependency Status David Peer Dependencies Status

IdP

Identity Provider based on the First Lego League Module Standard

Basic usage

Run using node server.js or npm run start

Principle of operation

The JWT IdP is based upon the redirect binding in SAML, but simpler:

  1. The Service Provider(SP), weather using the SP library or not, redirects the user to the Identity Provider(IdP) login URL <idp_url>/login?callbackUrl=<sp_callbackUrl>.
  2. The IdP authenticates the user and pulls its details out of the mongodb. NOTICE There is no verification on the callbackUrl parameter, or on the refferer of the redirection, and thereafore anyone can ask to use the IdP without authentication, but without the secret the IdP has, the SP cannot be sure the response was correct and protected.
  3. The IdP redirects to the callbackUrl parameter, adding to it the parameter token with the value of the JWT of the user, signed with the secret. The secret must be shared across servers upon startup.

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 service lightweight
  • Don't break API if not neccessary, and if you do, change the SP library accordingly.
  • Be creative and have fun

FAQs

Package last updated on 13 Oct 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc