SignInAsAuthenticationType value changed with identity changes

This commit is contained in:
Praburaj 2014-10-08 14:47:55 -07:00
parent b2a20bf4f5
commit ece6fc6c47
4 changed files with 4 additions and 4 deletions

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -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();