diff --git a/test/E2ETests/compiler/shared/Mocks/Facebook/TestFacebookEvents.cs b/test/E2ETests/compiler/shared/Mocks/Facebook/TestFacebookEvents.cs index 52586af751..de3a1b3c58 100644 --- a/test/E2ETests/compiler/shared/Mocks/Facebook/TestFacebookEvents.cs +++ b/test/E2ETests/compiler/shared/Mocks/Facebook/TestFacebookEvents.cs @@ -32,9 +32,9 @@ namespace MusicStore.Mocks.Facebook return Task.FromResult(0); } - internal static Task OnSigningIn(SigningInContext context) + internal static Task OnTicketReceived(TicketReceivedContext context) { - if (context.Principal != null && context.SignInScheme == new IdentityCookieOptions().ExternalCookieAuthenticationScheme) + if (context.Principal != null && context.Options.SignInScheme == new IdentityCookieOptions().ExternalCookieAuthenticationScheme) { //This way we will know all events were fired. var identity = context.Principal.Identities.First(); diff --git a/test/E2ETests/compiler/shared/Mocks/Google/TestGoogleEvents.cs b/test/E2ETests/compiler/shared/Mocks/Google/TestGoogleEvents.cs index 46f7222d92..d4132ea052 100644 --- a/test/E2ETests/compiler/shared/Mocks/Google/TestGoogleEvents.cs +++ b/test/E2ETests/compiler/shared/Mocks/Google/TestGoogleEvents.cs @@ -31,9 +31,9 @@ namespace MusicStore.Mocks.Google return Task.FromResult(0); } - internal static Task OnSigningIn(SigningInContext context) + internal static Task OnTicketReceived(TicketReceivedContext context) { - if (context.Principal != null && context.SignInScheme == new IdentityCookieOptions().ExternalCookieAuthenticationScheme) + if (context.Principal != null && context.Options.SignInScheme == new IdentityCookieOptions().ExternalCookieAuthenticationScheme) { //This way we will know all events were fired. var identity = context.Principal.Identities.First(); diff --git a/test/E2ETests/compiler/shared/Mocks/MicrosoftAccount/TestMicrosoftAccountEvents.cs b/test/E2ETests/compiler/shared/Mocks/MicrosoftAccount/TestMicrosoftAccountEvents.cs index 5d4c531bd1..cc3329d034 100644 --- a/test/E2ETests/compiler/shared/Mocks/MicrosoftAccount/TestMicrosoftAccountEvents.cs +++ b/test/E2ETests/compiler/shared/Mocks/MicrosoftAccount/TestMicrosoftAccountEvents.cs @@ -32,9 +32,9 @@ namespace MusicStore.Mocks.MicrosoftAccount return Task.FromResult(0); } - internal static Task OnSigningIn(SigningInContext context) + internal static Task OnTicketReceived(TicketReceivedContext context) { - if (context.Principal != null && context.SignInScheme == new IdentityCookieOptions().ExternalCookieAuthenticationScheme) + if (context.Principal != null && context.Options.SignInScheme == new IdentityCookieOptions().ExternalCookieAuthenticationScheme) { //This way we will know all events were fired. var identity = context.Principal.Identities.First(); diff --git a/test/E2ETests/compiler/shared/Mocks/StartupSocialTesting.cs b/test/E2ETests/compiler/shared/Mocks/StartupSocialTesting.cs index 415b598605..daaed694a9 100644 --- a/test/E2ETests/compiler/shared/Mocks/StartupSocialTesting.cs +++ b/test/E2ETests/compiler/shared/Mocks/StartupSocialTesting.cs @@ -137,7 +137,7 @@ namespace MusicStore options.Events = new OAuthEvents() { OnCreatingTicket = TestFacebookEvents.OnCreatingTicket, - OnSigningIn = TestFacebookEvents.OnSigningIn, + OnTicketReceived = TestFacebookEvents.OnTicketReceived, OnRedirectToAuthorizationEndpoint = TestFacebookEvents.RedirectToAuthorizationEndpoint }; options.BackchannelHttpHandler = new FacebookMockBackChannelHttpHandler(); @@ -155,7 +155,7 @@ namespace MusicStore options.Events = new OAuthEvents() { OnCreatingTicket = TestGoogleEvents.OnCreatingTicket, - OnSigningIn = TestGoogleEvents.OnSigningIn, + OnTicketReceived = TestGoogleEvents.OnTicketReceived, OnRedirectToAuthorizationEndpoint = TestGoogleEvents.RedirectToAuthorizationEndpoint }; options.StateDataFormat = new CustomStateDataFormat(); @@ -169,7 +169,7 @@ namespace MusicStore options.Events = new TwitterEvents() { OnCreatingTicket = TestTwitterEvents.OnCreatingTicket, - OnSigningIn = TestTwitterEvents.OnSigningIn, + OnTicketReceived = TestTwitterEvents.OnTicketReceived, OnRedirectToAuthorizationEndpoint = TestTwitterEvents.RedirectToAuthorizationEndpoint }; options.StateDataFormat = new CustomTwitterStateDataFormat(); @@ -184,7 +184,7 @@ namespace MusicStore options.Events = new OAuthEvents() { OnCreatingTicket = TestMicrosoftAccountEvents.OnCreatingTicket, - OnSigningIn = TestMicrosoftAccountEvents.OnSigningIn, + OnTicketReceived = TestMicrosoftAccountEvents.OnTicketReceived, OnRedirectToAuthorizationEndpoint = TestMicrosoftAccountEvents.RedirectToAuthorizationEndpoint }; options.BackchannelHttpHandler = new MicrosoftAccountMockBackChannelHandler(); diff --git a/test/E2ETests/compiler/shared/Mocks/Twitter/TestTwitterEvents.cs b/test/E2ETests/compiler/shared/Mocks/Twitter/TestTwitterEvents.cs index 573e5ca51f..f10d4de0b9 100644 --- a/test/E2ETests/compiler/shared/Mocks/Twitter/TestTwitterEvents.cs +++ b/test/E2ETests/compiler/shared/Mocks/Twitter/TestTwitterEvents.cs @@ -25,9 +25,9 @@ namespace MusicStore.Mocks.Twitter return Task.FromResult(0); } - internal static Task OnSigningIn(SigningInContext context) + internal static Task OnTicketReceived(TicketReceivedContext context) { - if (context.Principal != null && context.SignInScheme == new IdentityCookieOptions().ExternalCookieAuthenticationScheme) + if (context.Principal != null && context.Options.SignInScheme == new IdentityCookieOptions().ExternalCookieAuthenticationScheme) { //This way we will know all Events were fired. var identity = context.Principal.Identities.First();