Skip to content

Commit

Permalink
Merge pull request #715 from Vafilor/feat/add.auth.back
Browse files Browse the repository at this point in the history
fix: add backwards compatibility for auth token requests
  • Loading branch information
Vafilor authored Nov 9, 2020
2 parents 9c400e8 + 717a4bc commit 850b184
Show file tree
Hide file tree
Showing 6 changed files with 504 additions and 80 deletions.
57 changes: 57 additions & 0 deletions api/api.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,38 @@
"security": []
}
},
"/apis/v1beta1/auth/token": {
"post": {
"operationId": "IsValidToken",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/IsValidTokenResponse"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/grpc.gateway.runtime.Error"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/IsValidTokenRequest"
}
}
],
"tags": [
"AuthService"
]
}
},
"/apis/v1beta1/config": {
"get": {
"operationId": "GetConfig",
Expand Down Expand Up @@ -3041,6 +3073,31 @@
}
}
},
"IsValidTokenRequest": {
"type": "object",
"properties": {
"username": {
"type": "string"
},
"token": {
"type": "string"
}
}
},
"IsValidTokenResponse": {
"type": "object",
"properties": {
"domain": {
"type": "string"
},
"token": {
"type": "string"
},
"username": {
"type": "string"
}
}
},
"KeyValue": {
"type": "object",
"properties": {
Expand Down
Loading

0 comments on commit 850b184

Please sign in to comment.