mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
chore: support signed token query param for web terminal (#7197)
* chore: add endpoint to get token for web terminal * chore: support signed token query param for web terminal
This commit is contained in:
67
coderd/apidoc/docs.go
generated
67
coderd/apidoc/docs.go
generated
@ -159,6 +159,48 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"/applications/reconnecting-pty-signed-token": {
|
||||
"post": {
|
||||
"security": [
|
||||
{
|
||||
"CoderSessionToken": []
|
||||
}
|
||||
],
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"Applications Enterprise"
|
||||
],
|
||||
"summary": "Issue signed app token for reconnecting PTY",
|
||||
"operationId": "issue-signed-app-token-for-reconnecting-pty",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "Issue reconnecting PTY signed token request",
|
||||
"name": "request",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/codersdk.IssueReconnectingPTYSignedTokenRequest"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/codersdk.IssueReconnectingPTYSignedTokenResponse"
|
||||
}
|
||||
}
|
||||
},
|
||||
"x-apidocgen": {
|
||||
"skip": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"/audit": {
|
||||
"get": {
|
||||
"security": [
|
||||
@ -7451,6 +7493,31 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"codersdk.IssueReconnectingPTYSignedTokenRequest": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"agentID",
|
||||
"url"
|
||||
],
|
||||
"properties": {
|
||||
"agentID": {
|
||||
"type": "string",
|
||||
"format": "uuid"
|
||||
},
|
||||
"url": {
|
||||
"description": "URL is the URL of the reconnecting-pty endpoint you are connecting to.",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"codersdk.IssueReconnectingPTYSignedTokenResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"signed_token": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"codersdk.JobErrorCode": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
|
Reference in New Issue
Block a user