https://github.com/kamicut/authfunk
I just need an auth func 🕺
https://github.com/kamicut/authfunk
authentication aws-lambda hack
Last synced: 5 days ago
JSON representation
I just need an auth func 🕺
- Host: GitHub
- URL: https://github.com/kamicut/authfunk
- Owner: kamicut
- Created: 2017-10-14T17:32:21.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-14T21:35:08.000Z (over 8 years ago)
- Last Synced: 2025-09-08T19:33:46.118Z (10 months ago)
- Topics: authentication, aws-lambda, hack
- Language: JavaScript
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# authfunk
Single auth function for API Gateway + Lambda. Basically send a POST to the function with a form body like:
```
{
"username": "importantuser",
"password": "topsecret"
}
```
and receive a JWT token of the form:
```
{
"username": "importantuser",
"role": "admin",
"iat": 1508016459,
"exp": 1508052459
}
```
This function is experimental and untested, but I needed this protocol format. If you want a simple and strong authentication solution I recommend checking out [Auth0](Auth0.com).
## Install
You need to set the `AUTHFUNK_SECRET` which is what you will use to sign JWT tokens, and `AUTHFUNK_BUCKET` which is where you read and write users.
[...] More instructions TODO
## LICENSE
MIT