Azure B2C, ASP.net core webapp logout with a custom policy doesn`t work?
I have a .net core webapp and i want to logout a user in a custom policy(Azure B2C Tenant) that deletes a lokal account in Azure B2C Tenant from a user. The process to delete the user worked but the user is still logged in. As the redirect url from the custom policy i used: https://+++++.azurewebsites.net/AzureADB2C/Account/SignedOut. ( Get 302 Found ) Because it is the predefined way in .net core Azure plugin to logout the user and it worked on my website(get 200 ok). But in the custom policy it redirects to this but nothing happened( Get 302 Found ) and in the same action it redirects to the homepage(user is still logged in). The funny part is, when i am in the custom policy process after the user is deleted an type in the mentioned url it worked and logged me out. I also tried it with: "https://++++.b2clogin.com/+++++.onmicrosoft.com/B2C_1A_delete_my_account/oauth2/v2.0/logout?&post_logout_redirect_uri=https+++++.azurewebsites.net" also doesn`t work.
Has some one a idea, same problems or a solution? I do not know how to continue.
Thanks for your time.