Try to redirect on MSAL logout.
This commit is contained in:
@@ -95,7 +95,10 @@ namespace Shogi.Api
|
|||||||
{
|
{
|
||||||
await socketService.HandleSocketRequest(context);
|
await socketService.HandleSocketRequest(context);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
await next();
|
await next();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -123,7 +123,7 @@ public class AccountManager
|
|||||||
else if (platform == WhichAccountPlatform.Microsoft)
|
else if (platform == WhichAccountPlatform.Microsoft)
|
||||||
{
|
{
|
||||||
await accountState.SetUser(null);
|
await accountState.SetUser(null);
|
||||||
navigation.NavigateToLogout("authentication/logout");
|
navigation.NavigateToLogout("authentication/logout", "https://lucaserver.space/shogi");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,11 +39,7 @@ static void ConfigureDependencies(IServiceCollection services, IConfiguration co
|
|||||||
services.AddMsalAuthentication(options =>
|
services.AddMsalAuthentication(options =>
|
||||||
{
|
{
|
||||||
configuration.Bind("AzureAd", options.ProviderOptions.Authentication);
|
configuration.Bind("AzureAd", options.ProviderOptions.Authentication);
|
||||||
//options.ProviderOptions.DefaultAccessTokenScopes.Add("https://graph.microsoft.com/User.Read");
|
options.ProviderOptions.LoginMode = "redirect";
|
||||||
//options.ProviderOptions.DefaultAccessTokenScopes.Add("openid");
|
|
||||||
//options.ProviderOptions.DefaultAccessTokenScopes.Add("offline_access");
|
|
||||||
//options.ProviderOptions.DefaultAccessTokenScopes.Add("profile");
|
|
||||||
//options.ProviderOptions.LoginMode = "redirect";
|
|
||||||
|
|
||||||
});
|
});
|
||||||
services.AddOidcAuthentication(options =>
|
services.AddOidcAuthentication(options =>
|
||||||
|
|||||||
Reference in New Issue
Block a user