Azure B2C, ASP.net core webapp logout with a custom policy doesn`t work?

Jonas 1 Reputation point
2020-11-02T06:49:20.387+00:00

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.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,844 questions
Microsoft Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
2,633 questions
{count} votes