Skip to content

Commit 717a4bc

Browse files
committed
fix: temporary fix while cvat is not updated to use new auth
1 parent 74bc140 commit 717a4bc

File tree

6 files changed

+504
-80
lines changed

6 files changed

+504
-80
lines changed

api/api.swagger.json

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,38 @@
8787
"security": []
8888
}
8989
},
90+
"/apis/v1beta1/auth/token": {
91+
"post": {
92+
"operationId": "IsValidToken",
93+
"responses": {
94+
"200": {
95+
"description": "A successful response.",
96+
"schema": {
97+
"$ref": "#/definitions/IsValidTokenResponse"
98+
}
99+
},
100+
"default": {
101+
"description": "An unexpected error response",
102+
"schema": {
103+
"$ref": "#/definitions/grpc.gateway.runtime.Error"
104+
}
105+
}
106+
},
107+
"parameters": [
108+
{
109+
"name": "body",
110+
"in": "body",
111+
"required": true,
112+
"schema": {
113+
"$ref": "#/definitions/IsValidTokenRequest"
114+
}
115+
}
116+
],
117+
"tags": [
118+
"AuthService"
119+
]
120+
}
121+
},
90122
"/apis/v1beta1/config": {
91123
"get": {
92124
"operationId": "GetConfig",
@@ -3041,6 +3073,31 @@
30413073
}
30423074
}
30433075
},
3076+
"IsValidTokenRequest": {
3077+
"type": "object",
3078+
"properties": {
3079+
"username": {
3080+
"type": "string"
3081+
},
3082+
"token": {
3083+
"type": "string"
3084+
}
3085+
}
3086+
},
3087+
"IsValidTokenResponse": {
3088+
"type": "object",
3089+
"properties": {
3090+
"domain": {
3091+
"type": "string"
3092+
},
3093+
"token": {
3094+
"type": "string"
3095+
},
3096+
"username": {
3097+
"type": "string"
3098+
}
3099+
}
3100+
},
30443101
"KeyValue": {
30453102
"type": "object",
30463103
"properties": {

0 commit comments

Comments
 (0)