Thank you for posting your query on Microsoft Q&A. From above description I could understand that you want user to login by passing there credentials each time they access the application.
Please do correct me if this is not the case by responding in the comments section.
The above behavior is where users are able to sign in without entering the password is due to session management of an IDP through which they are logged in Google, Linkedin, Facebook etc and could not be controlled by Azure B2C.
However if the users are accessing the application with B2C local accounts then we could control the session as follows:
- Web app session lifetime (minutes) - Keep this to minimum (15 min)
- Web app session timeout - Set this to Absolute, to re-authenticate after the time period specified.
- Single sign-on configuration - Choose Suppressed/disabled - This setting forces the user to run through the entire user flow upon every execution of the policy.
- Enable Keep me signed in - Keep this unchecked, so that user is not remembered by the session.
Configure Sign-out behavior:
- Add a post logout redirect URI to the application:
Select App registrations, and then select your application.
Select Authentication.
In the Logout URL text box, type your post logout redirect URI, and then select Save.
- To add ID token in logout request, ensure that Require ID Token in logout requests is set to Yes.
This would clear the application's cookies and redirect the user to Azure AD B2C to sign out.
Thanks,
Akshay Kaushik
Please "Accept the answer" (Yes), and share your feedback if the suggestion answers you’re your query. This will help us and others in the community as well.