-
Notifications
You must be signed in to change notification settings - Fork 9.8k
/
CertificateChallengeContext.cs
37 lines (33 loc) · 1.31 KB
/
CertificateChallengeContext.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.AspNetCore.Http;
namespace Microsoft.AspNetCore.Authentication.Certificate
{
/// <summary>
/// State for the Challenge event.
/// </summary>
public class CertificateChallengeContext : PropertiesContext<CertificateAuthenticationOptions>
{
/// <summary>
/// Creates a new <see cref="CertificateChallengeContext"/>.
/// </summary>
/// <param name="context"></param>
/// <param name="scheme"></param>
/// <param name="options"></param>
/// <param name="properties"></param>
public CertificateChallengeContext(
HttpContext context,
AuthenticationScheme scheme,
CertificateAuthenticationOptions options,
AuthenticationProperties properties)
: base(context, scheme, options, properties) { }
/// <summary>
/// If true, will skip any default logic for this challenge.
/// </summary>
public bool Handled { get; private set; }
/// <summary>
/// Skips any default logic for this challenge.
/// </summary>
public void HandleResponse() => Handled = true;
}
}