Commit 6e05a47
Cs/http api (#671)
* WIP: Improve authenticator
* check expiration in seconds
* 1 test
* Parse IDP error messages, add test
* El testo
* Add authenticator throttling; Add even more tests
* New api
* WIP: ForSha256
* Remove websocket
* Option defaults
* Reorder methods like interface
* WIP
* Remaining tests for For*
* add forurl method
* add mssing urlreport
* ForStream
* add forfile test
* check options
* ForFile: Check if ForSha256 returns Detection, FileType, MimeType
* add options in url
* CSharpier this!
* Rider CSharpier
* ForSha256Async_SendsOptions
* fun with mocked httpclient
* http mocking
* WIP add more tests and error parsing for non success status codes
* Fix parsing of Vaas errors with problem details
* some broken test
* WIP tests
* add new test cases for user agent and request id
* fix client exception test
* Completed forfile tests
* Finished test for forstream & forurl + bugfixes
* exclude dotnet dirs
* fix test error
* remove handler mock
* cleanup and remove unsused websocket stuff
* use https aas vaas endpoint
* Refactor:
* Same usage as other SDKs
* Fix override of VaasOptions if no specific options are passed
* diable examples because it expects the websocket uri
* Making TokenReceiver.cs class abstract, and just implement TokenRequestToForm in ClientCredentialsGrantAuthenticator/ResourceOwnerPasswordGrantAuthenticator, thus getting rid of the authenticator switch and logically separating the two
* Update authenticators
* Always create a new request in while loop because 'Cannot send the same request message multiple times.'
* Add unit test for ForFileAsync method to verify timeout behavior
* Fix tests
* Refactor timeout handling to use TimeSpan instead of int for improved clarity
---------
Co-authored-by: Fröhling, Maximilian <[email protected]>
Co-authored-by: Philip Stadermann <[email protected]>
Co-authored-by: PT-ATA No One <[email protected]>
Co-authored-by: Lennart Dohmann <[email protected]>
Co-authored-by: Lennart Dohmann <[email protected]>1 parent d573caf commit 6e05a47
File tree
63 files changed
+2346
-1449
lines changed- .github/workflows
- dotnet
- .devcontainer
- Vaas
- .idea/.idea.Vaas/.idea
- src/Vaas
- Authentication
- Exceptions
- Messages
- Options
- test
- TestFiles
- Vaas.Test
- Authentication
- Messages
- __snapshots__
- __snapshots__
- examples/VaasExample
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
63 files changed
+2346
-1449
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
109 | 109 | | |
110 | | - | |
111 | | - | |
112 | | - | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
113 | 113 | | |
114 | | - | |
115 | | - | |
116 | | - | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
45 | 47 | | |
46 | 48 | | |
47 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
11 | 14 | | |
12 | 15 | | |
13 | 16 | | |
| |||
This file was deleted.
Lines changed: 0 additions & 21 deletions
This file was deleted.
Lines changed: 29 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
0 commit comments