10
10
using AngleSharp . Parser . Html ;
11
11
using Microsoft . AspNetCore . Authentication ;
12
12
using Microsoft . AspNetCore . Builder ;
13
+ using Microsoft . AspNetCore . DataProtection ;
13
14
using Microsoft . AspNetCore . Http ;
14
15
using Microsoft . AspNetCore . Http . Authentication ;
15
16
using Microsoft . IdentityModel . Protocols ;
@@ -26,12 +27,6 @@ public OpenIdAuthenticationOptions()
26
27
Events = new OpenIdAuthenticationEvents ( ) ;
27
28
}
28
29
29
- /// <summary>
30
- /// Gets or sets the data format used to serialize the
31
- /// authentication properties used for the "state" parameter.
32
- /// </summary>
33
- public ISecureDataFormat < AuthenticationProperties > StateDataFormat { get ; set ; }
34
-
35
30
/// <summary>
36
31
/// Gets or sets the absolute URL of the OpenID 2.0 authentication server.
37
32
/// Note: this property is ignored when <see cref="Configuration"/>
@@ -97,6 +92,20 @@ public OpenIdAuthenticationOptions()
97
92
set { base . Events = value ; }
98
93
}
99
94
95
+ /// <summary>
96
+ /// Gets or sets the data format used to serialize the
97
+ /// authentication properties used for the "state" parameter.
98
+ /// </summary>
99
+ public ISecureDataFormat < AuthenticationProperties > StateDataFormat { get ; set ; }
100
+
101
+ /// <summary>
102
+ /// Gets or sets the data protection provider used to create the default
103
+ /// data protectors used by the OpenID 2.0 authentication middleware.
104
+ /// When this property is set to <c>null</c>, the data protection provider
105
+ /// is directly retrieved from the dependency injection container.
106
+ /// </summary>
107
+ public IDataProtectionProvider DataProtectionProvider { get ; set ; }
108
+
100
109
/// <summary>
101
110
/// Gets or sets the HTTP client used to communicate with the OpenID provider.
102
111
/// </summary>
0 commit comments