Commit 7723b20
Login handler for login (#2730)
* adding the Tds Stream APIs
* Fix the NS
* Fix the enums
* adding the change underlying stream
* Address CR comments
* Initial Prelogin
* Adding prelogin handler
* Prelogin handler
* Adding the ssl work in progress
* Prelogin WIP
* Prelogin WIP
* Adding the prelogin handler changes for encryption
* Fix object Id
* Clean up the handler
* adding the prelogin handler sub handlers
* Adding the sub handlers for prelogin :
* Simplify
* Extract constants
* Adding the prelogin handler comment
* adding the GUID for the transport
* Adding the Login handler
* Adding the server info
* adding the login handler details
* Adding prelogin initial
* Checkout unintended
* Refactor the handlers and move some methods to context.
* Usage of Binary Primitives
* adding the prelogin bug fixes
* adding the refactored changes
* Improve Exception handling
* Fix the handler class name casing
* Add comments about SNI error and simplify code
* Throw the errors
* add comments
* Adding tests
* Preallocate prelogin write buffer
* Fix bad commit
* adding the comments on the context object
* Commit for Exceptions handling
* adding the simplification of wirte
* Using only the offset
* Move to binary primitives
* Fix the tests
* Adding the tests for Tds Prelogin handler
* Address CR comments
* address CR comments
* Handler Changes for login
* adding the csproj changes
* Address CR comments
* Remove not needed TODO
* Move write to BinaryPrimitives
* Move the password change request
* adding the login handler changes
* adding the feature extension
* adding the login handler port
* adding the chain
* More changes
* adding the changes
* adding the login changes
* Finish the writing
* Clean up
* Adding the login complete
* adding the complete login flow
* Adding the code
* Adding the right compilation
* Adding the Login handler
* adding the compilation fix
* Fixing The NRE
* Fixing the Password
* Fix bugs
* Fix the bugs and added tests
* Remove unused code. Refactor
* Refactor the login context
* Adding the additional refactor
* Refactor the code for login
* Remove creds
* Round 1 of CR comments
* Adding the CR changes part 2
* Adding tests and more refactoring
* Adding unit tests
---------
Co-authored-by: Saurabh Singh <singhsaura@microsoft.com>1 parent 09b8b16 commit 7723b20
13 files changed
Lines changed: 1554 additions & 20 deletions
File tree
- src/Microsoft.Data.SqlClient
- netcore/src
- Microsoft/Data/SqlClientX
- Handlers
- Connection
- Login
- PreloginSubHandlers
- IO
- tests/UnitTests/Handlers
- Login
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
929 | 929 | | |
930 | 930 | | |
931 | 931 | | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
932 | 936 | | |
933 | 937 | | |
934 | 938 | | |
| |||
Lines changed: 24 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
| 14 | + | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
| |||
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
21 | | - | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
28 | 35 | | |
29 | 36 | | |
30 | 37 | | |
| |||
64 | 71 | | |
65 | 72 | | |
66 | 73 | | |
67 | | - | |
| 74 | + | |
68 | 75 | | |
69 | 76 | | |
70 | 77 | | |
| |||
96 | 103 | | |
97 | 104 | | |
98 | 105 | | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
99 | 118 | | |
100 | 119 | | |
101 | 120 | | |
| |||
112 | 131 | | |
113 | 132 | | |
114 | 133 | | |
115 | | - | |
| 134 | + | |
116 | 135 | | |
117 | 136 | | |
118 | 137 | | |
119 | | - | |
| 138 | + | |
| 139 | + | |
120 | 140 | | |
121 | 141 | | |
122 | 142 | | |
| |||
0 commit comments