File tree Expand file tree Collapse file tree 3 files changed +17
-0
lines changed
src/Security/Authentication Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,14 @@ namespace Microsoft.AspNetCore.Authentication.Certificate;
1010/// </summary>
1111public class CertificateAuthenticationOptions : AuthenticationSchemeOptions
1212{
13+ /// <summary>
14+ /// Initializes a new instance of <see cref="CertificateAuthenticationOptions"/>.
15+ /// </summary>
16+ public CertificateAuthenticationOptions ( )
17+ {
18+ Events = new CertificateAuthenticationEvents ( ) ;
19+ }
20+
1321 /// <summary>
1422 /// Value indicating the types of certificates accepted by the authentication middleware.
1523 /// </summary>
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ public JwtBearerOptions()
3232 SecurityTokenValidators = new List < ISecurityTokenValidator > { _defaultHandler } ;
3333#pragma warning restore CS0618 // Type or member is obsolete
3434 TokenHandlers = new List < TokenHandler > { _defaultTokenHandler } ;
35+ Events = new JwtBearerEvents ( ) ;
3536 }
3637
3738 /// <summary>
Original file line number Diff line number Diff line change @@ -8,6 +8,14 @@ namespace Microsoft.AspNetCore.Authentication.Negotiate;
88/// </summary>
99public class NegotiateOptions : AuthenticationSchemeOptions
1010{
11+ /// <summary>
12+ /// Initializes a new instance of <see cref="NegotiateOptions"/>.
13+ /// </summary>
14+ public NegotiateOptions ( )
15+ {
16+ Events = new NegotiateEvents ( ) ;
17+ }
18+
1119 /// <summary>
1220 /// The object provided by the application to process events raised by the negotiate authentication handler.
1321 /// The application may use the existing NegotiateEvents instance and assign delegates only to the events it
You can’t perform that action at this time.
0 commit comments