Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancing security features #23

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions code/API_definitions/dedicated-network-accesses.yaml
Original file line number Diff line number Diff line change
@@ -25,6 +25,9 @@ paths:
- Accesses
summary: Get a list of device accesses to dedicated networks, optionally filtered for a given device and/or for a given dedicated network
operationId: listNetworkAccesses
security:
- openId:
- dedicated-network:accesses:read
parameters:
- name: networkId
in: query
@@ -59,6 +62,9 @@ paths:
- Accesses
summary: Create a device access to a dedicated network with given configuration
operationId: createNetworkAccess
security:
- openId:
- dedicated-network:access:create
requestBody:
content:
application/json:
@@ -96,6 +102,9 @@ paths:
- Accesses
summary: Get a device access to the dedicated network and its configuration
operationId: readNetworkAccess
security:
- openId:
- dedicated-network:access:read
parameters:
- name: accessId
in: path
@@ -128,6 +137,9 @@ paths:
- Accesses
summary: Delete a device access to the dedicated network
operationId: deleteNetworkAccess
security:
- openId:
- dedicated-network:access:delete
parameters:
- name: accessId
in: path
@@ -152,6 +164,10 @@ paths:
$ref: "#/components/responses/Generic503"

components:
securitySchemes:
openId:
type: openIdConnect
openIdConnectUrl: https://example.com/.well-known/openid-configuration

parameters:
x-correlator:
10 changes: 10 additions & 0 deletions code/API_definitions/dedicated-network-profiles.yaml
Original file line number Diff line number Diff line change
@@ -21,6 +21,9 @@ paths:
- Profiles
summary: Read dedicated network profiles
operationId: readNetworkProfiles
security:
- openId:
- dedicated-network:profiles:read
parameters:
- $ref: "#/components/parameters/x-correlator"
responses:
@@ -50,6 +53,9 @@ paths:
- Profiles
summary: Read a dedicated network profile
operationId: readNetworkProfile
security:
- openId:
- dedicated-network:profile:read
parameters:
- name: profileId
in: path
@@ -78,6 +84,10 @@ paths:
$ref: "#/components/responses/Generic503"

components:
securitySchemes:
openId:
type: openIdConnect
openIdConnectUrl: https://example.com/.well-known/openid-configuration

parameters:
x-correlator:
17 changes: 16 additions & 1 deletion code/API_definitions/dedicated-network.yaml
Original file line number Diff line number Diff line change
@@ -24,6 +24,9 @@ paths:
- Networks
summary: Get a list of dedicated networks
operationId: listNetworks
security:
- openId:
- dedicated-network:networks:read
parameters:
- $ref: "#/components/parameters/x-correlator"
responses:
@@ -52,6 +55,9 @@ paths:
- Networks
summary: Request to create a dedicated network
operationId: createNetwork
security:
- openId:
- dedicated-network:network:create
requestBody:
required: true
content:
@@ -137,6 +143,9 @@ paths:
- Networks
summary: Get the current information about a dedicated network
operationId: readNetwork
security:
- openId:
- dedicated-network:network:read
parameters:
- name: networkId
in: path
@@ -158,8 +167,11 @@ paths:
delete:
tags:
- Networks
summary: Destroy a dedicated network
summary: Delete a dedicated network
operationId: deleteNetwork
security:
- openId:
- dedicated-network:network:delete
parameters:
- name: networkId
in: path
@@ -185,6 +197,9 @@ paths:

components:
securitySchemes:
openId:
type: openIdConnect
openIdConnectUrl: https://example.com/.well-known/openid-configuration
notificationsBearerAuth:
description: Bearer authentication for notifications
type: http