You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add support for using multiple origins
* Improve error message by converting the lists to strings
* Changed demo to use origins.
* Change Origins to HashSet
* Fix conformance test controller, update tests to use origins instead of origin
Co-authored-by: Alex Seigler <[email protected]>
Copy file name to clipboardExpand all lines: Src/Fido2/AuthenticatorAttestationResponse.cs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -86,7 +86,7 @@ public async Task<AttestationVerificationSuccess> VerifyAsync(CredentialCreateOp
86
86
// 5. Verify that the value of C.origin matches the Relying Party's origin.
87
87
// 6. Verify that the value of C.tokenBinding.status matches the state of Token Binding for the TLS connection over which the assertion was obtained.
88
88
// If Token Binding was used on that TLS connection, also verify that C.tokenBinding.id matches the base64url encoding of the Token Binding ID for the connection.
thrownewFido2VerificationException($"Fully qualified origin {fullyQualifiedOrigin} of {Origin} not equal to fully qualified original origin {fullyQualifiedExpectedOrigin} of {expectedOrigin}");
thrownewFido2VerificationException($"Fully qualified origin {fullyQualifiedOrigin} of {Origin} not equal to fully qualified original origin {string.Join(", ",fullyQualifiedExpectedOrigins.Take(MAX_ORIGINS_TO_PRINT))} ({fullyQualifiedExpectedOrigins.Count})");
Copy file name to clipboardExpand all lines: Src/Fido2/Fido2NetLib.cs
+34-34Lines changed: 34 additions & 34 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
usingSystem.Security.Cryptography;
3
3
usingSystem.Threading.Tasks;
4
4
usingFido2NetLib.Objects;
5
-
5
+
6
6
namespaceFido2NetLib
7
7
{
8
8
/// <summary>
@@ -14,21 +14,21 @@ public partial class Fido2 : IFido2
14
14
privatereadonlyIMetadataService?_metadataService;
15
15
16
16
publicFido2(
17
-
Fido2Configurationconfig,
17
+
Fido2Configurationconfig,
18
18
IMetadataService?metadataService=null)
19
19
{
20
20
_config=config;
21
21
_metadataService=metadataService;
22
-
}
22
+
}
23
23
24
24
/// <summary>
25
25
/// Returns CredentialCreateOptions including a challenge to be sent to the browser/authr to create new credentials
26
26
/// </summary>
27
27
/// <returns></returns>
28
28
/// <param name="excludeCredentials">Recommended. This member is intended for use by Relying Parties that wish to limit the creation of multiple credentials for the same account on a single authenticator.The client is requested to return an error if the new credential would be created on an authenticator that also contains one of the credentials enumerated in this parameter.</param>
@@ -40,11 +40,11 @@ public CredentialCreateOptions RequestNewCredential(
40
40
/// <returns></returns>
41
41
/// <param name="attestationPreference">This member is intended for use by Relying Parties that wish to express their preference for attestation conveyance. The default is none.</param>
42
42
/// <param name="excludeCredentials">Recommended. This member is intended for use by Relying Parties that wish to limit the creation of multiple credentials for the same account on a single authenticator.The client is requested to return an error if the new credential would be created on an authenticator that also contains one of the credentials enumerated in this parameter.</param>
0 commit comments