serverless-authentication-provider

0.2.0 • Public • Published

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

Package Sidebar

Install

npm i serverless-authentication-provider

Weekly Downloads

3

Version

0.2.0

License

MIT

Last publish

Collaborators

  • eetut