Skip to content

Commit 2c24ca6

Browse files
svenzikmrts
authored andcommitted
Add debug statement when returning early
WE2-1027 Signed-off-by: Sven Mitt <[email protected]>
1 parent 517bd27 commit 2c24ca6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/WebEid.Security/Validator/CertValidators/SubjectCertificatePurposeValidator.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ public Task Validate(X509Certificate2 subjectCertificate)
6767
{
6868
// Digital Signature extension present, but Extended Key Usage extension not present,
6969
// assume it is an authentication certificate (e.g. Luxembourg eID).
70+
this.logger?.LogDebug("User certificate has Digital Signature key usage and no Extended Key Usage extension, this means that it can be used for client authentication.");
7071
return Task.CompletedTask;
7172
}
7273

0 commit comments

Comments
 (0)