I configured my vpn ssl on fortigate to authenticate with Azure AD. I create an conditional access to required MFA. But when user try to connect some days after the application don’t ask for login passWord or MFA.
I want to force every connexion of this application to require MFA.
Can you help me please.
I try to reduce sign in frequency to one hour but it don’t work
I have created sample web application with
Azure Ad Authentication.Azure Identity
You can add below code in your application configuration to force the login screen for every login.
Web Config file
Startup.Cs
You can achieve this by creating a custom
Conditional Access policyto requireMFAfor the specific application.Portal Configuration:
And configure the sign-in frequency in the
Conditional Access policyto requireMFAfor every connection.Login Page:

Reference: Preventing Open Redirection