Commit c593a70
Feature: mTLS ****** via CertificateOptions.SendCertificateOverMtls (#5849)
* initial
* Address review comments: remove dead appConfig, contradictory SendX5C
- Remove unused appConfig variable from both mTLS integration tests
- Remove contradictory SendX5C=true from mTLS Bearer test (SendCertificateOverMtls bypasses JWT assertion)
- Remove unnecessary SendX5C=true from PoP test (PoP overrides transport regardless)
- Resolve rebase conflicts with main (MsalError docs, PublicAPI files)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Fix MsalError doc to cover all InvalidCredentialMaterial scenarios
Restore mitigation text to include both WithCertificate() and
ClientSignedAssertion callback paths for mTLS Proof-of-Possession.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Address Copilot review: fix namespace refs and nullable assertion
- Replace Client.AppConfig.CertificateOptions with properly imported
CertificateOptions type (add using Microsoft.Identity.Client.AppConfig)
- Fix nullable bool? in Assert.IsTrue by adding ?? false coalescing
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Address open review comments: clarify static-cert-only docs, error message, and add mTLS transport assertion
- MsalErrorMessage: explicitly state static WithCertificate(X509Certificate2) overload requirement
- CertificateOptions XML docs: clarify transport-only semantics (token type depends on request-level config)
- CertificateOptions XML docs: say 'static certificate overload only' instead of generic 'certificate credentials'
- Integration test: add mtlsauth endpoint assertion to verify mTLS transport path was taken
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Address remaining review comments: add static-cert-only guard comment, improve cache test clarity
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Address review: extract ValidateCertificate, remove dead null check and unused CT param, revert CHANGELOG
- CertificateAndClaimsClientCredential: extract shared ValidateCertificate() to eliminate duplication between ResolveCertificateForMtlsAsync and ResolveCertificateAsync
- CertificateAndClaimsClientCredential: remove unused CancellationToken param from ResolveCertificateForMtlsAsync (CT is already in AssertionRequestOptions)
- MtlsPopParametersInitializer: remove dead null check (ResolveCertificateForMtlsAsync already throws on null)
- MtlsPopParametersInitializer: clarify dynamic cert support in comments
- Revert CHANGELOG.md to match main
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* comment
---------
Co-authored-by: Gladwin Johnson <90415114+gladjohn@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>1 parent ead58c8 commit c593a70
17 files changed
Lines changed: 405 additions & 34 deletions
File tree
- src/client/Microsoft.Identity.Client
- ApiConfig/Parameters
- AppConfig
- Extensibility
- Internal/ClientCredential
- PublicApi
- net462
- net472
- net8.0-android
- net8.0-ios
- net8.0
- netstandard2.0
- tests
- Microsoft.Identity.Test.Integration.netcore/HeadlessTests
- Microsoft.Identity.Test.Unit
- AppConfigTests
- PublicApiTests
Lines changed: 19 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
39 | 43 | | |
40 | 44 | | |
41 | 45 | | |
| |||
47 | 51 | | |
48 | 52 | | |
49 | 53 | | |
50 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
51 | 68 | | |
52 | 69 | | |
53 | 70 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| 128 | + | |
128 | 129 | | |
129 | 130 | | |
130 | 131 | | |
| |||
Lines changed: 25 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
27 | 52 | | |
28 | 53 | | |
Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | | - | |
| 166 | + | |
| 167 | + | |
167 | 168 | | |
168 | 169 | | |
169 | 170 | | |
| |||
476 | 477 | | |
477 | 478 | | |
478 | 479 | | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
479 | 490 | | |
480 | 491 | | |
481 | 492 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
78 | 79 | | |
79 | 80 | | |
80 | 81 | | |
| |||
Lines changed: 32 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
102 | 120 | | |
103 | 121 | | |
104 | 122 | | |
| |||
122 | 140 | | |
123 | 141 | | |
124 | 142 | | |
125 | | - | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
126 | 157 | | |
127 | 158 | | |
128 | | - | |
129 | | - | |
130 | 159 | | |
131 | 160 | | |
132 | 161 | | |
| |||
136 | 165 | | |
137 | 166 | | |
138 | 167 | | |
139 | | - | |
140 | | - | |
141 | 168 | | |
142 | 169 | | |
143 | 170 | | |
144 | 171 | | |
145 | 172 | | |
146 | 173 | | |
147 | 174 | | |
148 | | - | |
149 | | - | |
150 | 175 | | |
151 | 176 | | |
152 | 177 | | |
153 | 178 | | |
154 | 179 | | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | 180 | | |
162 | 181 | | |
163 | 182 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1259 | 1259 | | |
1260 | 1260 | | |
1261 | 1261 | | |
1262 | | - | |
1263 | | - | |
1264 | | - | |
1265 | | - | |
| 1262 | + | |
| 1263 | + | |
| 1264 | + | |
| 1265 | + | |
| 1266 | + | |
1266 | 1267 | | |
1267 | 1268 | | |
1268 | 1269 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
455 | 455 | | |
456 | 456 | | |
457 | 457 | | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
458 | 463 | | |
459 | 464 | | |
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | 1 | | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | 1 | | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
0 commit comments