An open API service indexing awesome lists of open source software.

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

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
```