Skip to content

Commit 0d4609b

Browse files
committed
Adding scopes and security OIDC scheme.
1 parent 87e0557 commit 0d4609b

File tree

3 files changed

+41
-0
lines changed

3 files changed

+41
-0
lines changed

code/API_definitions/dedicated-network-accesses.yaml

+16
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ paths:
2525
- Accesses
2626
summary: Get a list of device accesses to dedicated networks, optionally filtered for a given device and/or for a given dedicated network
2727
operationId: listNetworkAccesses
28+
security:
29+
- openId:
30+
- dedicated-networks:accesses:read
2831
parameters:
2932
- name: networkId
3033
in: query
@@ -59,6 +62,9 @@ paths:
5962
- Accesses
6063
summary: Create a device access to a dedicated network with given configuration
6164
operationId: createNetworkAccess
65+
security:
66+
- openId:
67+
- dedicated-networks:access:create
6268
requestBody:
6369
content:
6470
application/json:
@@ -96,6 +102,9 @@ paths:
96102
- Accesses
97103
summary: Get a device access to the dedicated network and its configuration
98104
operationId: readNetworkAccess
105+
security:
106+
- openId:
107+
- dedicated-networks:access:read
99108
parameters:
100109
- name: accessId
101110
in: path
@@ -128,6 +137,9 @@ paths:
128137
- Accesses
129138
summary: Delete a device access to the dedicated network
130139
operationId: deleteNetworkAccess
140+
security:
141+
- openId:
142+
- dedicated-networks:access:destroy
131143
parameters:
132144
- name: accessId
133145
in: path
@@ -152,6 +164,10 @@ paths:
152164
$ref: "#/components/responses/Generic503"
153165

154166
components:
167+
securitySchemes:
168+
openId:
169+
type: openIdConnect
170+
openIdConnectUrl: https://example.com/.well-known/openid-configuration
155171

156172
parameters:
157173
x-correlator:

code/API_definitions/dedicated-network-profiles.yaml

+10
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ paths:
2121
- Profiles
2222
summary: Read dedicated network profiles
2323
operationId: readNetworkProfiles
24+
security:
25+
- openId:
26+
- dedicated-networks:profiles:read
2427
parameters:
2528
- $ref: "#/components/parameters/x-correlator"
2629
responses:
@@ -50,6 +53,9 @@ paths:
5053
- Profiles
5154
summary: Read a dedicated network profile
5255
operationId: readNetworkProfile
56+
security:
57+
- openId:
58+
- dedicated-networks:profile:read
5359
parameters:
5460
- name: profileId
5561
in: path
@@ -78,6 +84,10 @@ paths:
7884
$ref: "#/components/responses/Generic503"
7985

8086
components:
87+
securitySchemes:
88+
openId:
89+
type: openIdConnect
90+
openIdConnectUrl: https://example.com/.well-known/openid-configuration
8191

8292
parameters:
8393
x-correlator:

code/API_definitions/dedicated-network.yaml

+15
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ paths:
2424
- Networks
2525
summary: Get a list of dedicated networks
2626
operationId: listNetworks
27+
security:
28+
- openId:
29+
- dedicated-networks:networks:read
2730
parameters:
2831
- $ref: "#/components/parameters/x-correlator"
2932
responses:
@@ -52,6 +55,9 @@ paths:
5255
- Networks
5356
summary: Request to create a dedicated network
5457
operationId: createNetwork
58+
security:
59+
- openId:
60+
- dedicated-networks:network:create
5561
requestBody:
5662
required: true
5763
content:
@@ -137,6 +143,9 @@ paths:
137143
- Networks
138144
summary: Get the current information about a dedicated network
139145
operationId: readNetwork
146+
security:
147+
- openId:
148+
- dedicated-networks:network:read
140149
parameters:
141150
- name: networkId
142151
in: path
@@ -160,6 +169,9 @@ paths:
160169
- Networks
161170
summary: Destroy a dedicated network
162171
operationId: deleteNetwork
172+
security:
173+
- openId:
174+
- dedicated-networks:network:destroy
163175
parameters:
164176
- name: networkId
165177
in: path
@@ -185,6 +197,9 @@ paths:
185197

186198
components:
187199
securitySchemes:
200+
openId:
201+
type: openIdConnect
202+
openIdConnectUrl: https://example.com/.well-known/openid-configuration
188203
notificationsBearerAuth:
189204
description: Bearer authentication for notifications
190205
type: http

0 commit comments

Comments
 (0)