Hi, I am using Azure ADB2C for authentication. The Logout feature for ADB2C needs 2 parameters to successfully redirect back to the webapp. It needs post_logout_redirect_uri and id_token_hint.
The default logout with OpenID (Logout with Redirect or Logout with Popup)is only setting the id_token_hint. In such a situation Azure does not redirect and instead shows an error page
Question 1:- Is there a way to add this parameter during logout so that we can use the default signout using redirect feature?
In absence of a way to do that i added a workflow to redirect to the correct url using Redirect. This logs the user out of Azure and redirects back to the app but the application cookie is not removed and hence the user shows logged in.
I then added a Javascript step to the workflow to delete the session variable starting with “oidc-user”
Q2:- Is this the right approach or is there a better way of logging off for the application ?
Thanks