hi
You need to call the base method to logout
// Ask ASP.NET Core Identity to delete the local and external cookies created // when the user agent is redirected from the external identity provider // after a successful authentication flow (e.g Google or Facebook). await SignInManager.SignOutAsync(); // Returning a SignOutResult will ask OpenIddict to redirect the user agent // to the post_logout_redirect_uri specified by the client application or to // the RedirectUri specified in the authentication properties if none was set. return SignOut(authenticationSchemes: OpenIddictServerAspNetCoreDefaults.AuthenticationScheme);It will redirect to
post_logout_redirect_uri, you can redirect toexternalLogoutin yourpost_logout_redirect_uri.If you can share a simple project, I can download and check it.
liming.ma@volosoft.com
Hi, I have updated post_logout_redirect_uri (refer below columns)
but still while calling the logout post_logout_redirect_uri is same (seems like it is taking from somewhere else), it is going on login page but not clearing external login session

Please find my sample project here- https://github.com/priyankamauryaa/eFC
hi
You need to call the base method to logout
// Ask ASP.NET Core Identity to delete the local and external cookies created // when the user agent is redirected from the external identity provider // after a successful authentication flow (e.g Google or Facebook). await SignInManager.SignOutAsync(); // Returning a SignOutResult will ask OpenIddict to redirect the user agent // to the post_logout_redirect_uri specified by the client application or to // the RedirectUri specified in the authentication properties if none was set. return SignOut(authenticationSchemes: OpenIddictServerAspNetCoreDefaults.AuthenticationScheme);It will redirect to
post_logout_redirect_uri, you can redirect toexternalLogoutin yourpost_logout_redirect_uri.If you can share a simple project, I can download and check it.
liming.ma@volosoft.com
Hi, I have updated post_logout_redirect_uri (refer below columns)
but still while calling the logout post_logout_redirect_uri is same (seems like it is taking from somewhere else), it is going on login page but not clearing external login session
Please find my sample project here- https://github.com/priyankamauryaa/eFC
Hi, it is working after updating this in code
[ReplaceControllers(typeof(LogoutController))] public class CustomLogoutController : LogoutController { [HttpGet] public override async Task<IActionResult> GetAsync() { if (Response != null) { IConfigurationRoot _config = new ConfigurationBuilder().SetBasePath(Directory.GetParent(AppContext.BaseDirectory).FullName) .AddJsonFile("appsettings.json", false).Build(); var externalLogout = _config.GetSection("ADFSConfig:EndSession").Get<string>(); Response.Redirect(externalLogout); } await SignInManager.SignOutAsync(); return SignOut(); } }
Hi, it is working after updating this in code
Great. 👍
Thank you so much for your support and time. :)
hi
Using this overload is no problem.
Can you share a new template project to reproduce your problem?
liming.ma@volosoft.com
hi, please refer this for sample in same project.
https://github.com/priyankamauryaa/eFC/blob/32e09c87fefea417338e6dc93ca963553ccfe843/eFC.Application/BT/BTAppService.cs#L22C9-L38C1
hi
I can't build and run your app.
Can you share a template sample project?
Thanks
no problem, it is working after commenting localizationResource from TemplateDefinitionProvider. Thanks again for the response.
shiwei.liang@volosft.com
Hi, for same project you can refer this -https://github.com/priyankamauryaa/eFC
Thanks
realLiangshiwei
I sent you invite as collaborator. can you accept and try?