From ece6fc6c4719f56a9c6f1fb03c7d525786887e15 Mon Sep 17 00:00:00 2001 From: Praburaj Date: Wed, 8 Oct 2014 14:47:55 -0700 Subject: [PATCH] SignInAsAuthenticationType value changed with identity changes --- src/MusicStore/Mocks/Facebook/FacebookNotifications.cs | 2 +- src/MusicStore/Mocks/Google/GoogleNotifications.cs | 2 +- .../Mocks/MicrosoftAccount/MicrosoftAccountNotifications.cs | 2 +- src/MusicStore/Mocks/Twitter/TwitterNotifications.cs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/MusicStore/Mocks/Facebook/FacebookNotifications.cs b/src/MusicStore/Mocks/Facebook/FacebookNotifications.cs index 9f8f6c7478..fe669d7fb3 100644 --- a/src/MusicStore/Mocks/Facebook/FacebookNotifications.cs +++ b/src/MusicStore/Mocks/Facebook/FacebookNotifications.cs @@ -34,7 +34,7 @@ namespace MusicStore.Mocks.Facebook internal static async Task OnReturnEndpoint(OAuthReturnEndpointContext context) { - if (context.Identity != null && context.SignInAsAuthenticationType == "Microsoft.AspNet.Identity.ExternalLogin") + if (context.Identity != null && context.SignInAsAuthenticationType == "Microsoft.AspNet.Identity.External") { //This way we will know all notifications were fired. var manageStoreClaim = context.Identity.Claims.Where(c => c.Type == "ManageStore" && c.Value == "false").FirstOrDefault(); diff --git a/src/MusicStore/Mocks/Google/GoogleNotifications.cs b/src/MusicStore/Mocks/Google/GoogleNotifications.cs index fedca1224f..a870fd123a 100644 --- a/src/MusicStore/Mocks/Google/GoogleNotifications.cs +++ b/src/MusicStore/Mocks/Google/GoogleNotifications.cs @@ -33,7 +33,7 @@ namespace MusicStore.Mocks.Google internal static async Task OnReturnEndpoint(OAuthReturnEndpointContext context) { - if (context.Identity != null && context.SignInAsAuthenticationType == "Microsoft.AspNet.Identity.ExternalLogin") + if (context.Identity != null && context.SignInAsAuthenticationType == "Microsoft.AspNet.Identity.External") { //This way we will know all notifications were fired. var manageStoreClaim = context.Identity.Claims.Where(c => c.Type == "ManageStore" && c.Value == "false").FirstOrDefault(); diff --git a/src/MusicStore/Mocks/MicrosoftAccount/MicrosoftAccountNotifications.cs b/src/MusicStore/Mocks/MicrosoftAccount/MicrosoftAccountNotifications.cs index 9196c8d0b1..e6d68217c1 100644 --- a/src/MusicStore/Mocks/MicrosoftAccount/MicrosoftAccountNotifications.cs +++ b/src/MusicStore/Mocks/MicrosoftAccount/MicrosoftAccountNotifications.cs @@ -34,7 +34,7 @@ namespace MusicStore.Mocks.MicrosoftAccount internal static async Task OnReturnEndpoint(OAuthReturnEndpointContext context) { - if (context.Identity != null && context.SignInAsAuthenticationType == "Microsoft.AspNet.Identity.ExternalLogin") + if (context.Identity != null && context.SignInAsAuthenticationType == "Microsoft.AspNet.Identity.External") { //This way we will know all notifications were fired. var manageStoreClaim = context.Identity.Claims.Where(c => c.Type == "ManageStore" && c.Value == "false").FirstOrDefault(); diff --git a/src/MusicStore/Mocks/Twitter/TwitterNotifications.cs b/src/MusicStore/Mocks/Twitter/TwitterNotifications.cs index 653df73b67..1ab82e77d2 100644 --- a/src/MusicStore/Mocks/Twitter/TwitterNotifications.cs +++ b/src/MusicStore/Mocks/Twitter/TwitterNotifications.cs @@ -27,7 +27,7 @@ namespace MusicStore.Mocks.Twitter internal static async Task OnReturnEndpoint(TwitterReturnEndpointContext context) { - if (context.Identity != null && context.SignInAsAuthenticationType == "Microsoft.AspNet.Identity.ExternalLogin") + if (context.Identity != null && context.SignInAsAuthenticationType == "Microsoft.AspNet.Identity.External") { //This way we will know all notifications were fired. var manageStoreClaim = context.Identity.Claims.Where(c => c.Type == "ManageStore" && c.Value == "false").FirstOrDefault();