Skip to content

Latest commit

 

History

History
49 lines (38 loc) · 1020 Bytes

README.md

File metadata and controls

49 lines (38 loc) · 1020 Bytes

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.