Skip to content

opencars/auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

84933eb · Jan 28, 2023

History

72 Commits
Aug 30, 2022
Dec 25, 2021
Jan 6, 2022
Jan 28, 2023
Dec 24, 2021
Jan 28, 2023
Aug 11, 2020
Aug 30, 2022
Nov 19, 2019
Oct 19, 2020
May 13, 2020
Jan 6, 2022
Jan 6, 2022
Aug 30, 2022
Aug 30, 2022

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.