JSPM

serverless-authentication-provider

0.2.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 5
  • Score
    100M100P100Q38979F
  • License MIT

Example authentication provider module for Serverless Authentication

Package Exports

  • serverless-authentication-provider

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (serverless-authentication-provider) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Authentication provider example for Serverless Authentication

This is an example provider that can be used as a starting point when creating a new authentication provider for Serverless Authentication boilerplate.

Source - src/index.js

ExampleProvider.signin The purpose of this function is to return redirect url to the authentication provider sign in page

ExampleProvider.callback User profile should be returned in callback of this function.

Tests - specs/

Basic authentication flow is mocked in specs/test-authentication.js. To run tests use npm run compile-test which first compiles src folder and then runs the tests.

Examples

Following providers are build similar way than this example