Skip to content

Commit 6a6a632

Browse files
authored
GetRequriedService (#20028)
1 parent 21096ed commit 6a6a632

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aspnetcore/security/authentication/certauth.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ services.AddAuthentication(
183183
{
184184
var validationService =
185185
context.HttpContext.RequestServices
186-
.GetService<ICertificateValidationService>();
186+
.GetRequiredService<ICertificateValidationService>();
187187

188188
if (validationService.ValidateCertificate(
189189
context.ClientCertificate))

0 commit comments

Comments
 (0)