https://github.com/codemk8/mauth
Authentication microservice written in go
https://github.com/codemk8/mauth
Last synced: 5 months ago
JSON representation
Authentication microservice written in go
- Host: GitHub
- URL: https://github.com/codemk8/mauth
- Owner: codemk8
- License: apache-2.0
- Created: 2019-03-12T20:52:42.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-20T23:40:36.000Z (about 7 years ago)
- Last Synced: 2024-04-23T11:19:39.161Z (about 2 years ago)
- Language: Go
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## mauth
Authentication microservice written in go with different backends for storing user info:
* AWS database
* Local database
## API Endpoints
* /register
* /login
* /auth
* /logout
## To run a micro service
```bash
export MAUTH_API_KEY="YOUR_API_KEY_HERE"
./bin/mauth --alsologtostderr
```
```bash
# test by curl
curl -H "Content-Type: application/json" -H "Authorization: token YOUR_API_KEY_HERE" http://localhost:55555/login
```