Hello Damian :)
I found this solution, can you tell us if it helps, please?
When using SAML authentication, the behavior you are experiencing is due to the caching of login credentials by the browser cookies. This is a common scenario where, after the first successful login, subsequent login attempts do not prompt for credentials again. Here’s a detailed explanation and some workarounds:
Why are credentials not prompted again
Cookie Caching: After the first login, the SAML login credentials are cached by the embedded browser cookies. This means that even if you restart the client OS, the credentials are still stored in the browser's cookies, allowing automatic login without prompting for credentials again.
Workarounds to Prompt for Credentials Again
-
Delete Cookies: For Windows clients, you can manually delete the 'Cookies' file. Refer to this Technical Tip for detailed instructions on how to disable auto-caching on VPN login using SAML.
-
Use Private Browsing Mode: If you are using a web browser, perform the login from a 'Private Window' (Firefox), 'InPrivate Window' (Microsoft Edge), or 'Incognito' (Google Chrome). This mode does not save cookies, so you will be prompted for credentials each time.
-
FortiClient EMS Management: If FortiClient is managed by FortiClient EMS, you can leverage the On-Disconnect script to delete cookies. This involves editing the SSL VPN tunnel from a 'Remote Access' profile on the EMS Server and adding a script to delete cookies.
Future Solutions: A permanent fix is being discussed for future releases of FortiClient versions 6.4, 7.0, and 7.2. This fix aims to include a global option for 'Save login' that will encompass the SAML authentication method.
Follow-ups and Clarification Questions
- Are you using a specific browser or FortiClient version that might have additional settings affecting this behavior?
- Is your FortiClient managed by FortiClient EMS, and do you have access to configure On-Disconnect scripts?
- Would you like more detailed instructions on any of the workarounds mentioned above?