Skip to content

opencars/auth

Repository files navigation

Auth

CircleCI Go Report Card

Overview

🛡️ Authorization provider for OpenCars API.

Event API

On each authorization request new message published to the message broker.

Success

{
  "kind": "authorization",
  "data": {
    "enabled": true,
    "id": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
    "ip": "172.18.0.1",
    "name": "xxx-xxx",
    "status": "succeed",
    "timestamp": "2020-03-14T00:43:20"
  }
}

Failure

{
  "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.