feat: update api to use accessTokenAuth

This commit is contained in:
Andrey Melnikov
2020-11-03 13:37:30 -08:00
parent 93bdc7cd70
commit a405e8bf46
6 changed files with 70 additions and 448 deletions
+2 -59
View File
@@ -87,38 +87,6 @@
"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",
@@ -2970,7 +2938,7 @@
"username": {
"type": "string"
},
"tokenHash": {
"token": {
"type": "string"
}
}
@@ -2981,7 +2949,7 @@
"domain": {
"type": "string"
},
"token": {
"accessToken": {
"type": "string"
},
"username": {
@@ -3073,31 +3041,6 @@
}
}
},
"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": {