mirror of
https://github.com/onepanelio/onepanel.git
synced 2026-04-22 23:27:09 +08:00
feat: update api to use accessTokenAuth
This commit is contained in:
+2
-59
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user