Repository navigation
Expand file tree
/
Copy pathAuthenticationOptions.cs
More file actions
51 lines (44 loc) · 2.05 KB
/
Copy pathAuthenticationOptions.cs
File metadata and controls
51 lines (44 loc) · 2.05 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// 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.Authentication;
namespace Microsoft.AspNetCore.Builder
{
/// <summary>
/// Base Options for all authentication middleware.
/// </summary>
public abstract class AuthenticationOptions
{
private string _authenticationScheme;
/// <summary>
/// The AuthenticationScheme in the options corresponds to the logical name for a particular authentication scheme. A different
/// value may be assigned in order to use the same authentication middleware type more than once in a pipeline.
/// </summary>
public string AuthenticationScheme
{
get { return _authenticationScheme; }
set
{
_authenticationScheme = value;
Description.AuthenticationScheme = value;
}
}
/// <summary>
/// If true the authentication middleware alter the request user coming in. If false the authentication middleware will only provide
/// identity when explicitly indicated by the AuthenticationScheme.
/// </summary>
public bool AutomaticAuthenticate { get; set; }
/// <summary>
/// If true the authentication middleware should handle automatic challenge.
/// If false the authentication middleware will only alter responses when explicitly indicated by the AuthenticationScheme.
/// </summary>
public bool AutomaticChallenge { get; set; }
/// <summary>
/// Gets or sets the issuer that should be used for any claims that are created
/// </summary>
public string ClaimsIssuer { get; set; }
/// <summary>
/// Additional information about the authentication type which is made available to the application.
/// </summary>
public AuthenticationDescription Description { get; set; } = new AuthenticationDescription();
}
}