SignInAsAuthenticationType value changed with identity changes
This commit is contained in:
parent
b2a20bf4f5
commit
ece6fc6c47
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue