Home
About
Search
Welcome to M-Files Empower – our new support experience. We'd love to hear what you think!Give feedback
Home/Support and troubleshooting/Examples and how to

Cannot use M-Files login with the new web client, I always get SSO prompt

Last updated on 11 July 2022

Admin
Microsoft Entra ID Authentication

Overview

When using new web (vNext) URL, it is ignoring the "RedirectOnLoginLoad" setting being set to "false" in the configuration and automatically redirects to the identity provider (such as Okta, or Azure AD) for authentication, instead of letting the user choose to login with an M-Files login or a federated (SSO) Windows login. You can only use the Windows account.

Details

The new web client detects when there is a default federated authentication configuration enabled for the vault and uses that every time. The "RedirectOnLoginLoad" setting being "false", when used alone, applies only to the classic Web client. Note that "false" is its default value, but it is sometimes set to "true" explicitly.

Solution

To allow M-Files login accounts in the new web client when you have federated authentication enabled, you need two settings:

  • Make sure the "RedirectOnLoginLoad" setting to "false" (to see it, show the Advanced settings of the Client). 
  • The "Default configuration" must either be empty, or set to a bogus value that does not match the name of an existing configuration.

Here is a basic example of the JSON of such a configuration (note that this will not work if you copy it, it is just to showcase the properties):

{

   "scopes": [

        {

           "configurations": [

                {

                    "name": "MyConfig",

                   "tmpProtocol": "oauth",

                   "oauthSettings": {

                       "client": {

                           "tmpExtras": "yes",

                           "RedirectOnLoginLoad": "false"

                       }

                    }

                }

            ],

           "defaultConfiguration": "Empty or just not MyConfig"

        }

    ]

}

Still need help?