https://github.com/opencars/auth
:shield: Authentication service
https://github.com/opencars/auth
api-token auth-provider traefik
Last synced: about 1 month ago
JSON representation
:shield: Authentication service
- Host: GitHub
- URL: https://github.com/opencars/auth
- Owner: opencars
- License: mit
- Created: 2019-11-19T12:24:36.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-02-25T02:02:59.000Z (almost 3 years ago)
- Last Synced: 2025-05-30T06:25:47.673Z (9 months ago)
- Topics: api-token, auth-provider, traefik
- Language: Go
- Size: 101 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Auth
[](https://circleci.com/gh/opencars/auth)
[](https://goreportcard.com/report/github.com/opencars/auth)
## Overview
:shield: Authorization provider for OpenCars API.
## Event API
On each authorization request new message published to the message broker.
### Success
```JSON
{
"kind": "authorization",
"data": {
"enabled": true,
"id": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"ip": "172.18.0.1",
"name": "xxx-xxx",
"status": "succeed",
"timestamp": "2020-03-14T00:43:20"
}
}
```
### Failure
```JSON
{
"kind": "authorization",
"data": {
"enabled": false,
"error": "auth.token.revoked",
"id": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"ip": "172.18.0.1",
"name": "xxx-xxx",
"status": "succeed",
"timestamp": "2020-03-14T00:43:20"
}
}
```
## License
Project released under the terms of the MIT [license](./LICENSE).