Skip to content

Commit a2de39f

Browse files
[IOT-2478] Add security OAuth2 to dashboards endpoints (#80)
* [IOT-2478] Added security 'oauth2' to dashboards * Updated swagger - Added OAuth2 to dashboards V2 * Bump client versions --------- Co-authored-by: Mirko Curtolo <[email protected]>
1 parent f14e083 commit a2de39f

File tree

5 files changed

+27
-5
lines changed

5 files changed

+27
-5
lines changed

config/languages/go_v2.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
"gitRepoId": "iot-client-go",
44
"isGoSubmodule": false,
55
"packageName": "iot",
6-
"packageVersion": "1.4.4",
6+
"packageVersion": "1.4.5",
77
"withGoCodegenComment": true
88
}

config/languages/html2_v2.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"packageName": "iot",
3-
"packageVersion": "1.4.4",
3+
"packageVersion": "1.4.5",
44
"usePromises": true
55
}

config/languages/javascript_v2.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"projectName": "@arduino/arduino-iot-client",
33
"moduleName": "ArduinoIotClient",
4-
"projectVersion": "1.4.4",
5-
"packageVersion": "1.4.4",
4+
"projectVersion": "1.4.5",
5+
"packageVersion": "1.4.5",
66
"usePromises": true,
77
"licenseName":"GPLv3",
88
"generateSourceCodeOnly": true

config/languages/python_v2.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"packageName": "iot_api_client",
33
"projectName": "arduino-iot-client",
4-
"packageVersion": "1.4.4",
4+
"packageVersion": "1.4.5",
55
"generateSourceCodeOnly": true
66
}

spec/v2/swagger.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1303,6 +1303,7 @@ components:
13031303
- phone
13041304
- portenta_x8
13051305
- opta
1306+
- giga
13061307
type: string
13071308
user_id:
13081309
description: The user_id associated to the device. If absent it will be
@@ -1519,6 +1520,7 @@ components:
15191520
- phone
15201521
- portenta_x8
15211522
- opta
1523+
- giga
15221524
type: string
15231525
user_id:
15241526
description: The user_id associated to the device. If absent it will be
@@ -2082,6 +2084,8 @@ paths:
20822084
schema:
20832085
$ref: '#/components/schemas/error'
20842086
description: Internal Server Error
2087+
security:
2088+
- oauth2: []
20852089
summary: list dashboards_v2
20862090
tags:
20872091
- dashboards_v2
@@ -2129,6 +2133,8 @@ paths:
21292133
schema:
21302134
$ref: '#/components/schemas/error'
21312135
description: Internal Server Error
2136+
security:
2137+
- oauth2: []
21322138
summary: create dashboards_v2
21332139
tags:
21342140
- dashboards_v2
@@ -2170,6 +2176,8 @@ paths:
21702176
schema:
21712177
$ref: '#/components/schemas/error'
21722178
description: Internal Server Error
2179+
security:
2180+
- oauth2: []
21732181
summary: delete dashboards_v2
21742182
tags:
21752183
- dashboards_v2
@@ -2208,6 +2216,8 @@ paths:
22082216
schema:
22092217
$ref: '#/components/schemas/error'
22102218
description: Internal Server Error
2219+
security:
2220+
- oauth2: []
22112221
summary: show dashboards_v2
22122222
tags:
22132223
- dashboards_v2
@@ -2263,6 +2273,8 @@ paths:
22632273
schema:
22642274
$ref: '#/components/schemas/error'
22652275
description: Internal Server Error
2276+
security:
2277+
- oauth2: []
22662278
summary: update dashboards_v2
22672279
tags:
22682280
- dashboards_v2
@@ -2314,6 +2326,8 @@ paths:
23142326
schema:
23152327
$ref: '#/components/schemas/error'
23162328
description: Internal Server Error
2329+
security:
2330+
- oauth2: []
23172331
summary: requestAccess dashboards_v2
23182332
tags:
23192333
- dashboards_v2
@@ -2359,6 +2373,8 @@ paths:
23592373
schema:
23602374
$ref: '#/components/schemas/error'
23612375
description: Internal Server Error
2376+
security:
2377+
- oauth2: []
23622378
summary: listShares dashboards_v2
23632379
tags:
23642380
- dashboards_v2
@@ -2409,6 +2425,8 @@ paths:
24092425
schema:
24102426
$ref: '#/components/schemas/error'
24112427
description: Internal Server Error
2428+
security:
2429+
- oauth2: []
24122430
summary: share dashboards_v2
24132431
tags:
24142432
- dashboards_v2
@@ -2456,6 +2474,8 @@ paths:
24562474
schema:
24572475
$ref: '#/components/schemas/error'
24582476
description: Internal Server Error
2477+
security:
2478+
- oauth2: []
24592479
summary: deleteShare dashboards_v2
24602480
tags:
24612481
- dashboards_v2
@@ -2517,6 +2537,8 @@ paths:
25172537
schema:
25182538
$ref: '#/components/schemas/error'
25192539
description: Internal Server Error
2540+
security:
2541+
- oauth2: []
25202542
summary: link dashboards_v2
25212543
tags:
25222544
- dashboards_v2

0 commit comments

Comments
 (0)