React to identity
This commit is contained in:
parent
16a9872a55
commit
2597c0d3d7
|
|
@ -36,7 +36,7 @@ namespace MusicStore.Mocks.Facebook
|
||||||
|
|
||||||
internal static async Task OnReturnEndpoint(OAuthReturnEndpointContext context)
|
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.
|
//This way we will know all notifications were fired.
|
||||||
var identity = context.Principal.Identities.First();
|
var identity = context.Principal.Identities.First();
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,7 @@ namespace MusicStore.Mocks.Google
|
||||||
|
|
||||||
internal static async Task OnReturnEndpoint(OAuthReturnEndpointContext context)
|
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.
|
//This way we will know all notifications were fired.
|
||||||
var identity = context.Principal.Identities.First();
|
var identity = context.Principal.Identities.First();
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ namespace MusicStore.Mocks.MicrosoftAccount
|
||||||
|
|
||||||
internal static async Task OnReturnEndpoint(OAuthReturnEndpointContext context)
|
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.
|
//This way we will know all notifications were fired.
|
||||||
var identity = context.Principal.Identities.First();
|
var identity = context.Principal.Identities.First();
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ namespace MusicStore.Mocks.Twitter
|
||||||
|
|
||||||
internal static async Task OnReturnEndpoint(TwitterReturnEndpointContext context)
|
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.
|
//This way we will know all notifications were fired.
|
||||||
var identity = context.Principal.Identities.First();
|
var identity = context.Principal.Identities.First();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue