-
Notifications
You must be signed in to change notification settings - Fork 6
The abstract client class #108
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
Open
VladIftime
wants to merge
31
commits into
pairing&auth
Choose a base branch
from
feat/abstract_client
base: pairing&auth
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
c59e925
Small clean-up before pull
VladIftime 928a41a
Merge branch 'pairing&auth' of github.com:flexiblepower/s2-python int…
VladIftime 7355d68
Started the abstract class for a client using PR 85 as inspiration
VladIftime af98f84
Chore: Fixing tests
VladIftime 54b2466
Chore: Fixing tests added extra dependencies
VladIftime cc3da10
Chore: Fixing tests
VladIftime 53d4cb1
Chore: Fixing tests
VladIftime c7bce1b
Added a mock server for testing only
VladIftime 5294be3
Pairing is succesful using the token from the mock server
VladIftime 164d467
Connection to the REST server works. Now the server needs to create t…
VladIftime caa666e
Created a default_client and made the abstract client use functions t…
VladIftime 9840519
Created a default_client and made the abstract client use functions t…
VladIftime 8001f5b
Chore: fixing tests
VladIftime 584e49e
Add .yaml specs and fixed bw compat.
VladIftime 71d89b5
dropping python 3.8 support (#117)
MauriceHendrix 8552f9d
Chore: Fix tests
VladIftime 51ffb3b
moved import backwards compatibility fix to __init__.py in the main s…
MauriceHendrix c91c766
Update src/s2python/authorization/client.py
MauriceHendrix bbaaeb4
Update src/s2python/authorization/client.py
MauriceHendrix 4077452
Update src/s2python/authorization/client.py
MauriceHendrix d8d2803
Update src/s2python/authorization/client.py
MauriceHendrix c08b086
Update src/s2python/authorization/client.py
MauriceHendrix 5df1960
Update src/s2python/authorization/client.py
MauriceHendrix 4c21e89
Update src/s2python/authorization/default_client.py
MauriceHendrix 1639af8
Update src/s2python/authorization/default_client.py
MauriceHendrix 60f36ae
Update dev-requirements.txt
MauriceHendrix 460ba2d
Update default_client.py
MauriceHendrix 575eee7
fixed linting errors (#119)
MauriceHendrix 71c05b9
Update src/s2python/authorization/default_client.py
VladIftime 6d05f1b
Small update
VladIftime b4d983b
Merge branch 'feat/abstract_client' of github.com:flexiblepower/s2-py…
VladIftime File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -13,4 +13,3 @@ venv | |
| dist/ | ||
| build/ | ||
| %LOCALAPPDATA% | ||
| s2-python/src/s2python/specification/s2-pairing/s2-over-ip-pairing.yaml | ||
This file contains hidden or 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 hidden or 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 hidden or 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,136 @@ | ||
| openapi: 3.0.3 | ||
| info: | ||
| version: "0.1" | ||
| title: s2-over-ip pairing and connection initiation | ||
| description: "Description of the pairing process over IP for S2" | ||
| paths: | ||
| /requestPairing: | ||
| post: | ||
| description: Initiate pairing | ||
| requestBody: | ||
| description: TODO | ||
| content: | ||
| application/json: | ||
| schema: | ||
| $ref: '#/components/schemas/PairingRequest' | ||
| responses: | ||
| '200': | ||
| description: TODO | ||
| content: | ||
| application/json: | ||
| schema: | ||
| $ref: '#/components/schemas/PairingResponse' | ||
| /requestConnection: | ||
| post: | ||
| description: TODO | ||
| requestBody: | ||
| description: TODO | ||
| content: | ||
| application/json: | ||
| schema: | ||
| $ref: '#/components/schemas/ConnectionRequest' | ||
| responses: | ||
| '200': | ||
| description: TODO | ||
| content: | ||
| application/json: | ||
| schema: | ||
| $ref: '#/components/schemas/ConnectionDetails' | ||
| components: | ||
| schemas: | ||
| PairingInfo: | ||
| type: object | ||
| properties: | ||
| pairingUri: | ||
| type: string | ||
| format: uri | ||
| token: | ||
| $ref: "#/components/schemas/PairingToken" | ||
| validUntil: | ||
| type: string | ||
| format: date-time | ||
| PairingRequest: | ||
| type: object | ||
| properties: | ||
| token: | ||
| $ref: "#/components/schemas/PairingToken" | ||
| publicKey: | ||
| type: string | ||
| format: byte | ||
| s2ClientNodeId: | ||
| type: string | ||
| format: uuid | ||
| s2ClientNodeDescription: | ||
| $ref: "#/components/schemas/S2NodeDescription" | ||
| supportedProtocols: | ||
| type: array | ||
| items: | ||
| $ref: "#/components/schemas/Protocols" | ||
| PairingResponse: | ||
| type: object | ||
| properties: | ||
| s2ServerNodeId: | ||
| type: string | ||
| format: uuid | ||
| serverNodeDescription: | ||
| $ref: "#/components/schemas/S2NodeDescription" | ||
| requestConnectionUri: | ||
| type: string | ||
| format: uri | ||
| ConnectionRequest: | ||
| type: object | ||
| properties: | ||
| s2ClientNodeId: | ||
| type: string | ||
| format: uuid | ||
| supportedProtocols: | ||
| type: array | ||
| items: | ||
| $ref: "#/components/schemas/Protocols" | ||
| ConnectionDetails: | ||
| type: object | ||
| properties: | ||
| selectedProtocol: | ||
| $ref: "#/components/schemas/Protocols" | ||
| challenge: | ||
| type: string | ||
| format: byte | ||
| connectionUri: | ||
| type: string | ||
| format: uri | ||
| S2NodeDescription: | ||
| type: object | ||
| description: TODO nog even over nadenken | ||
| properties: | ||
| brand: | ||
| type: string | ||
| logoUri: | ||
| type: string | ||
| format: uri | ||
| type: | ||
| type: string | ||
| modelName: | ||
| type: string | ||
| userDefinedName: | ||
| type: string | ||
| role: | ||
| $ref: "#/components/schemas/S2Role" | ||
| deployment: | ||
| $ref: "#/components/schemas/Deployment" | ||
| Protocols: | ||
| type: string | ||
| enum: | ||
| - WebSocketSecure | ||
| S2Role: | ||
| type: string | ||
| enum: | ||
| - CEM | ||
| - RM | ||
| Deployment: | ||
| type: string | ||
| enum: | ||
| - WAN | ||
| - LAN | ||
| PairingToken: | ||
| type: string | ||
| pattern: "^[0-9a-zA-Z]{32}$" |
This file contains hidden or 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
Empty file.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.