Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/laardee/serverless-authentication-provider
https://github.com/laardee/serverless-authentication-provider
Last synced: 3 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/laardee/serverless-authentication-provider
- Owner: laardee
- License: mit
- Created: 2016-04-08T21:10:07.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-05-21T22:42:46.000Z (over 8 years ago)
- Last Synced: 2024-11-07T19:19:36.713Z (7 days ago)
- Language: JavaScript
- Size: 9.77 KB
- Stars: 4
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
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](https://github.com/laardee/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
* https://github.com/laardee/serverless-authentication-facebook
* https://github.com/laardee/serverless-authentication-google
* https://github.com/laardee/serverless-authentication-microsoft