React to identity

This commit is contained in:
Hao Kung 2015-09-02 16:50:22 -07:00
parent 16a9872a55
commit 2597c0d3d7
4 changed files with 4 additions and 4 deletions

View File

@ -36,7 +36,7 @@ namespace MusicStore.Mocks.Facebook
internal static async Task OnReturnEndpoint(OAuthReturnEndpointContext context)
{
if (context.Principal != null && context.SignInScheme == IdentityCookieOptions.ExternalCookieAuthenticationScheme)
if (context.Principal != null && context.SignInScheme == new IdentityCookieOptions().ExternalCookieAuthenticationScheme)
{
//This way we will know all notifications were fired.
var identity = context.Principal.Identities.First();

View File

@ -35,7 +35,7 @@ namespace MusicStore.Mocks.Google
internal static async Task OnReturnEndpoint(OAuthReturnEndpointContext context)
{
if (context.Principal != null && context.SignInScheme == IdentityCookieOptions.ExternalCookieAuthenticationScheme)
if (context.Principal != null && context.SignInScheme == new IdentityCookieOptions().ExternalCookieAuthenticationScheme)
{
//This way we will know all notifications were fired.
var identity = context.Principal.Identities.First();

View File

@ -36,7 +36,7 @@ namespace MusicStore.Mocks.MicrosoftAccount
internal static async Task OnReturnEndpoint(OAuthReturnEndpointContext context)
{
if (context.Principal != null && context.SignInScheme == IdentityCookieOptions.ExternalCookieAuthenticationScheme)
if (context.Principal != null && context.SignInScheme == new IdentityCookieOptions().ExternalCookieAuthenticationScheme)
{
//This way we will know all notifications were fired.
var identity = context.Principal.Identities.First();

View File

@ -29,7 +29,7 @@ namespace MusicStore.Mocks.Twitter
internal static async Task OnReturnEndpoint(TwitterReturnEndpointContext context)
{
if (context.Principal != null && context.SignInScheme == IdentityCookieOptions.ExternalCookieAuthenticationScheme)
if (context.Principal != null && context.SignInScheme == new IdentityCookieOptions().ExternalCookieAuthenticationScheme)
{
//This way we will know all notifications were fired.
var identity = context.Principal.Identities.First();