Skip to content

Commit 2e11acb

Browse files
ahliliana
authored andcommitted
working
1 parent 2f28ef8 commit 2e11acb

File tree

6 files changed

+12
-58
lines changed

6 files changed

+12
-58
lines changed

Cargo.lock

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nexus/src/external_api/device_auth.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ pub enum DeviceAccessTokenResponse {
199199
method = POST,
200200
path = "/device/token",
201201
content_type = "application/x-www-form-urlencoded",
202-
tags = ["hidden"], // "token"
202+
unpublished = true,
203203
}]
204204
pub async fn device_access_token(
205205
rqctx: Arc<RequestContext<Arc<ServerContext>>>,

nexus/tests/output/nexus_tags.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ sled_view /hardware/sleds/{sled_id}
1515

1616
API operations found with tag "hidden"
1717
OPERATION ID URL PATH
18-
device_access_token /device/token
1918
device_auth_confirm /device/confirm
2019
logout /logout
2120
session_me /session/me

openapi/nexus.json

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -509,36 +509,6 @@
509509
}
510510
}
511511
},
512-
"/device/token": {
513-
"post": {
514-
"tags": [
515-
"hidden"
516-
],
517-
"summary": "Request a device access token",
518-
"description": "This endpoint should be polled by the client until the user code is verified and the grant is confirmed.",
519-
"operationId": "device_access_token",
520-
"requestBody": {
521-
"content": {
522-
"application/x-www-form-urlencoded": {
523-
"schema": {
524-
"$ref": "#/components/schemas/DeviceAccessTokenRequest"
525-
}
526-
}
527-
},
528-
"required": true
529-
},
530-
"responses": {
531-
"default": {
532-
"description": "",
533-
"content": {
534-
"*/*": {
535-
"schema": {}
536-
}
537-
}
538-
}
539-
}
540-
}
541-
},
542512
"/hardware/racks": {
543513
"get": {
544514
"tags": [
@@ -6729,26 +6699,6 @@
67296699
"public_cert"
67306700
]
67316701
},
6732-
"DeviceAccessTokenRequest": {
6733-
"type": "object",
6734-
"properties": {
6735-
"client_id": {
6736-
"type": "string",
6737-
"format": "uuid"
6738-
},
6739-
"device_code": {
6740-
"type": "string"
6741-
},
6742-
"grant_type": {
6743-
"type": "string"
6744-
}
6745-
},
6746-
"required": [
6747-
"client_id",
6748-
"device_code",
6749-
"grant_type"
6750-
]
6751-
},
67526702
"DeviceAuthVerify": {
67536703
"type": "object",
67546704
"properties": {

oxide-client/Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ license = "MPL-2.0"
66

77
[dependencies]
88
progenitor = { git = "https://github.com/oxidecomputer/progenitor" }
9-
#serde_json = "1.0"
9+
regress = "0.4.1"
10+
futures = "0.3.21"
11+
serde_json = "1.0.82"
1012

1113
[dependencies.chrono]
1214
version = "0.4"

oxide-client/src/lib.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
//! Interface for making API requests to the Oxide control plane.
66
7-
// progenitor::generate_api!(
8-
// spec = "../openapi/nexus.json",
9-
// interface = Builder,
10-
// tags = Separate,
11-
// );
7+
progenitor::generate_api!(
8+
spec = "../openapi/nexus.json",
9+
interface = Builder,
10+
tags = Separate,
11+
);

0 commit comments

Comments
 (0)