This repository has been archived by the owner on Dec 20, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 871
/
IdentityOptions.cs
77 lines (68 loc) · 2.93 KB
/
IdentityOptions.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
// 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 System;
namespace Microsoft.AspNet.Identity
{
/// <summary>
/// Represents all the options you can use to configure the identity system.
/// </summary>
public class IdentityOptions
{
/// <summary>
/// Gets or sets the <see cref="ClaimsIdentityOptions"/> for the identity system.
/// </summary>
/// <value>
/// The <see cref="ClaimsIdentityOptions"/> for the identity system.
/// </value>
public ClaimsIdentityOptions ClaimsIdentity { get; set; } = new ClaimsIdentityOptions();
/// <summary>
/// Gets or sets the <see cref="UserOptions"/> for the identity system.
/// </summary>
/// <value>
/// The <see cref="UserOptions"/> for the identity system.
/// </value>
public UserOptions User { get; set; } = new UserOptions();
/// <summary>
/// Gets or sets the <see cref="PasswordOptions"/> for the identity system.
/// </summary>
/// <value>
/// The <see cref="PasswordOptions"/> for the identity system.
/// </value>
public PasswordOptions Password { get; set; } = new PasswordOptions();
/// <summary>
/// Gets or sets the <see cref="LockoutOptions"/> for the identity system.
/// </summary>
/// <value>
/// The <see cref="LockoutOptions"/> for the identity system.
/// </value>
public LockoutOptions Lockout { get; set; } = new LockoutOptions();
/// <summary>
/// Gets or sets the <see cref="SignInOptions"/> for the identity system.
/// </summary>
/// <value>
/// The <see cref="SignInOptions"/> for the identity system.
/// </value>
public SignInOptions SignIn { get; set; } = new SignInOptions();
/// <summary>
/// Gets or sets the <see cref="IdentityCookieOptions"/> for the identity system.
/// </summary>
/// <value>
/// The <see cref="IdentityCookieOptions"/> for the identity system.
/// </value>
public IdentityCookieOptions Cookies { get; set; } = new IdentityCookieOptions();
/// <summary>
/// Gets or sets the <see cref="TokenOptions"/> for the identity system.
/// </summary>
/// <value>
/// The <see cref="TokenOptions"/> for the identity system.
/// </value>
public TokenOptions Tokens { get; set; } = new TokenOptions();
/// <summary>
/// Gets or sets the <see cref="TimeSpan"/> after which security stamps are re-validated.
/// </summary>
/// <value>
/// The <see cref="TimeSpan"/> after which security stamps are re-validated.
/// </value>
public TimeSpan SecurityStampValidationInterval { get; set; } = TimeSpan.FromMinutes(30);
}
}