Hi,
How do I reproduce these problemes? please share the full steps, thanks.
Hi,
You can try
var app = context.GetApplicationBuilder();
if(app != null)
{
app.UseMiddleware();
}
Move to https://support.abp.io/QA/Questions/7535/Child-Entities-with-File-Type
Hi,
Could you share the full steps to reproduce? thanks.
You can try
[Route("connect/logout")]
[ApiExplorerSettings(IgnoreApi = true)]
[Dependency(ReplaceServices = true)]
[ExposeServices(typeof(LogoutController))]
public class MyLogoutController : LogoutController
{
[HttpGet]
public async override Task<IActionResult> GetAsync()
{
await SignInManager.SignOutAsync();
var post_logout_redirect_uri = HttpContext.Request.Query["post_logout_redirect_uri"].ToString();
return SignOut(authenticationSchemes: "AzureAD" , properties: new AuthenticationProperties()
{
RedirectUri ="https://localhost:44322/account/loggedout?PostLogoutRedirectUri="+ post_logout_redirect_uri.Replace("signout-callback-oidc", "")
});
}
}
For example:
[Route("connect/logout")]
[ApiExplorerSettings(IgnoreApi = true)]
[Dependency(ReplaceServices = true)]
[ExposeServices(typeof(LogoutController))]
public class MyLogoutController : LogoutController
{
[HttpGet]
public async override Task<IActionResult> GetAsync()
{
await SignInManager.SignOutAsync();
var post_logout_redirect_uri = HttpContext.Request.Query["post_logout_redirect_uri"].ToString();
return SignOut(authenticationSchemes: "AzureAD" , properties: new AuthenticationProperties()
{
RedirectUri = post_logout_redirect_uri.Replace("signout-callback-oidc", "")
});
}
}
Hi,
You can get the client URL from the HTTP Request.
You can try this ,it works for me:
[Route("connect/logout")]
[ApiExplorerSettings(IgnoreApi = true)]
[Dependency(ReplaceServices = true)]
[ExposeServices(typeof(LogoutController))]
public class MyLogoutController : LogoutController
{
[HttpGet]
public override async Task<IActionResult> GetAsync()
{
await SignInManager.SignOutAsync();
return SignOut(authenticationSchemes: "AzureAD" , properties: new AuthenticationProperties()
{
RedirectUri = "https://localhost:44314" // client URL
});
}
}
get redirect uri from HttpContext.Request and add to AuthenticationProperties.RedirectUri
You can add the parameters post logout uri manually