-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
648 additions
and
153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ info: | |
description: Protocol-aware fine-grained relay server | ||
contact: | ||
name: Devolutions Inc. | ||
email: '' | ||
email: [email protected] | ||
license: | ||
name: MIT/Apache-2.0 | ||
version: 2022.2.2 | ||
|
@@ -241,6 +241,8 @@ components: | |
format: uuid | ||
SubProvisionerPublicKey: | ||
$ref: '#/components/schemas/SubProvisionerKey' | ||
Subscriber: | ||
$ref: '#/components/schemas/Subscriber' | ||
ConnectionMode: | ||
type: string | ||
enum: | ||
|
@@ -267,7 +269,7 @@ components: | |
jti: | ||
type: string | ||
format: uuid | ||
description: Unique ID for current JRL | ||
description: Unique ID for current JRL | ||
ListenerUrls: | ||
type: object | ||
required: | ||
|
@@ -323,4 +325,25 @@ components: | |
type: string | ||
Value: | ||
type: string | ||
Subscriber: | ||
type: object | ||
required: | ||
- Url | ||
- Token | ||
properties: | ||
Token: | ||
type: string | ||
Url: | ||
type: string | ||
securitySchemes: | ||
jrl_token: | ||
type: http | ||
scheme: bearer | ||
bearerFormat: JWT | ||
description: Contains the JRL to apply if newer | ||
scope_token: | ||
type: http | ||
scheme: bearer | ||
bearerFormat: JWT | ||
description: Token allowing a single HTTP request for a specific scope | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
openapi: 3.0.3 | ||
info: | ||
title: devolutions-gateway-subscriber | ||
description: API a service must implement in order to receive Devolutions Gateway | ||
notifications | ||
contact: | ||
name: Devolutions Inc. | ||
email: [email protected] | ||
license: | ||
name: MIT/Apache-2.0 | ||
version: 2022.2.2 | ||
paths: | ||
/: | ||
post: | ||
tags: | ||
- crate::subscriber | ||
summary: Process a message originating from a Devolutions Gateway instance | ||
description: | | ||
Process a message originating from a Devolutions Gateway instance | ||
operationId: PostMessage | ||
requestBody: | ||
description: Message | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/SubscriberMessage' | ||
required: true | ||
responses: | ||
'200': | ||
description: Message received and processed successfuly | ||
'400': | ||
description: Bad message | ||
'401': | ||
description: Invalid or missing authorization token | ||
'403': | ||
description: Insufficient permissions | ||
deprecated: false | ||
security: | ||
- subscriber_token: [] | ||
components: | ||
schemas: | ||
SubscriberMessage: | ||
type: object | ||
required: | ||
- kind | ||
properties: | ||
kind: | ||
$ref: '#/components/schemas/SubscriberMessageKind' | ||
session: | ||
$ref: '#/components/schemas/SubscriberSessionInfo' | ||
session_list: | ||
type: array | ||
items: | ||
$ref: '#/components/schemas/SubscriberSessionInfo' | ||
SubscriberMessageKind: | ||
type: string | ||
enum: | ||
- session.started | ||
- session.ended | ||
- session.list | ||
SubscriberSessionInfo: | ||
type: object | ||
required: | ||
- association_id | ||
- start_timestamp | ||
properties: | ||
association_id: | ||
type: string | ||
format: uuid | ||
start_timestamp: | ||
type: string | ||
format: date-time | ||
securitySchemes: | ||
subscriber_token: | ||
type: http | ||
scheme: bearer | ||
description: Token allowing to push messages | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.