Skip to content

Commit 2f2a595

Browse files
authored
Fix bug where CreatingTicket event isn't properly initialized (#600)
1 parent 28d7546 commit 2f2a595

File tree

78 files changed

+99
-99
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+99
-99
lines changed

src/AspNet.Security.OAuth.AdobeIO/AdobeIOAuthenticationHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ protected override async Task<AuthenticationTicket> CreateTicketAsync(
6161
var context = new OAuthCreatingTicketContext(principal, properties, Context, Scheme, Options, Backchannel, tokens, payload.RootElement);
6262
context.RunClaimActions();
6363

64-
await Options.Events.CreatingTicket(context);
64+
await Events.CreatingTicket(context);
6565
return new AuthenticationTicket(context.Principal!, context.Properties, Scheme.Name);
6666
}
6767

src/AspNet.Security.OAuth.Alipay/AlipayAuthenticationHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ protected override async Task<AuthenticationTicket> CreateTicketAsync(
155155

156156
context.RunClaimActions();
157157

158-
await Options.Events.CreatingTicket(context);
158+
await Events.CreatingTicket(context);
159159

160160
return new AuthenticationTicket(context.Principal!, context.Properties, Scheme.Name);
161161
}

src/AspNet.Security.OAuth.Amazon/AmazonAuthenticationHandler.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
* Licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
33
* See https://github.com/aspnet-contrib/AspNet.Security.OAuth.Providers
44
* for more information concerning the license and the contributors participating to this project.
@@ -75,7 +75,7 @@ protected override async Task<AuthenticationTicket> CreateTicketAsync(
7575
var context = new OAuthCreatingTicketContext(principal, properties, Context, Scheme, Options, Backchannel, tokens, payload.RootElement);
7676
context.RunClaimActions();
7777

78-
await Options.Events.CreatingTicket(context);
78+
await Events.CreatingTicket(context);
7979
return new AuthenticationTicket(context.Principal!, context.Properties, Scheme.Name);
8080
}
8181
}

src/AspNet.Security.OAuth.AmoCrm/AmoCrmAuthenticationHandler.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
* Licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
33
* See https://github.com/aspnet-contrib/AspNet.Security.OAuth.Providers
44
* for more information concerning the license and the contributors participating to this project.
@@ -69,7 +69,7 @@ protected override async Task<AuthenticationTicket> CreateTicketAsync(
6969
var context = new OAuthCreatingTicketContext(principal, properties, Context, Scheme, Options, Backchannel, tokens, payload.RootElement);
7070
context.RunClaimActions();
7171

72-
await Options.Events.CreatingTicket(context);
72+
await Events.CreatingTicket(context);
7373
return new AuthenticationTicket(context.Principal!, context.Properties, Scheme.Name);
7474
}
7575
}

src/AspNet.Security.OAuth.Apple/AppleAuthenticationHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ protected override async Task<AuthenticationTicket> CreateTicketAsync(
111111
var context = new OAuthCreatingTicketContext(principal, properties, Context, Scheme, Options, Backchannel, tokens, tokens.Response.RootElement);
112112
context.RunClaimActions();
113113

114-
await Options.Events.CreatingTicket(context);
114+
await Events.CreatingTicket(context);
115115
return new AuthenticationTicket(context.Principal!, context.Properties, Scheme.Name);
116116
}
117117

src/AspNet.Security.OAuth.ArcGIS/ArcGISAuthenticationHandler.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
* Licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
33
* See https://github.com/aspnet-contrib/AspNet.Security.OAuth.Providers
44
* for more information concerning the license and the contributors participating to this project.
@@ -67,7 +67,7 @@ protected override async Task<AuthenticationTicket> CreateTicketAsync(
6767
var context = new OAuthCreatingTicketContext(principal, properties, Context, Scheme, Options, Backchannel, tokens, payload.RootElement);
6868
context.RunClaimActions();
6969

70-
await Options.Events.CreatingTicket(context);
70+
await Events.CreatingTicket(context);
7171
return new AuthenticationTicket(context.Principal!, context.Properties, Scheme.Name);
7272
}
7373
}

src/AspNet.Security.OAuth.Asana/AsanaAuthenticationHandler.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
* Licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
33
* See https://github.com/aspnet-contrib/AspNet.Security.OAuth.Providers
44
* for more information concerning the license and the contributors participating to this project.
@@ -56,7 +56,7 @@ protected override async Task<AuthenticationTicket> CreateTicketAsync(
5656
var context = new OAuthCreatingTicketContext(principal, properties, Context, Scheme, Options, Backchannel, tokens, payload.RootElement);
5757
context.RunClaimActions(payload.RootElement.GetProperty("data"));
5858

59-
await Options.Events.CreatingTicket(context);
59+
await Events.CreatingTicket(context);
6060
return new AuthenticationTicket(context.Principal!, context.Properties, Scheme.Name);
6161
}
6262
}

src/AspNet.Security.OAuth.Autodesk/AutodeskAuthenticationHandler.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
* Licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
33
* See https://github.com/aspnet-contrib/AspNet.Security.OAuth.Providers
44
* for more information concerning the license and the contributors participating to this project.
@@ -56,7 +56,7 @@ protected override async Task<AuthenticationTicket> CreateTicketAsync(
5656
var context = new OAuthCreatingTicketContext(principal, properties, Context, Scheme, Options, Backchannel, tokens, payload.RootElement);
5757
context.RunClaimActions();
5858

59-
await Options.Events.CreatingTicket(context);
59+
await Events.CreatingTicket(context);
6060
return new AuthenticationTicket(context.Principal!, context.Properties, Scheme.Name);
6161
}
6262
}

src/AspNet.Security.OAuth.Automatic/AutomaticAuthenticationHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ protected override async Task<AuthenticationTicket> CreateTicketAsync(
5858
var context = new OAuthCreatingTicketContext(principal, properties, Context, Scheme, Options, Backchannel, tokens, payload.RootElement);
5959
context.RunClaimActions();
6060

61-
await Options.Events.CreatingTicket(context);
61+
await Events.CreatingTicket(context);
6262
return new AuthenticationTicket(context.Principal!, context.Properties, Scheme.Name);
6363
}
6464

src/AspNet.Security.OAuth.Baidu/BaiduAuthenticationHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ protected override async Task<AuthenticationTicket> CreateTicketAsync(
5858
var context = new OAuthCreatingTicketContext(principal, properties, Context, Scheme, Options, Backchannel, tokens, payload.RootElement);
5959
context.RunClaimActions();
6060

61-
await Options.Events.CreatingTicket(context);
61+
await Events.CreatingTicket(context);
6262
return new AuthenticationTicket(context.Principal!, context.Properties, Scheme.Name);
6363
}
6464
}

0 commit comments

Comments
 (0)