↑↓ to navigate ↵ to open Esc to close Search by Algolia

You are reading the documentation of FileRun 2026.4.0, which is not released yet. It is subject to change, so do not use it for planning. Read this page for FileRun 2026.3.0

Authentication integration

FileRun can sign people in through other systems, such as an OpenID Connect provider or an LDAP directory. This page describes the authentication sources, the settings that every source has, and how FileRun chooses a source when someone signs in. The settings that belong to one plugin are described on the page of that plugin.

Plugins and sources

A plugin connects FileRun to one kind of system. A source is one configured instance of a plugin. You can add any number of sources, and several sources can use the same plugin. For example, an OpenID Connect provider and an LDAP directory can work at the same time. Two OpenID Connect providers can also work at the same time.

The Plugin list of the source window holds these plugins:

Plugin Use it for Sign-in Setup guide
Authelia the Authelia identity provider button
Authentik OAuth2 Authentik, through OAuth2. This plugin is deprecated. Use Authentik OpenID Connect instead. button Authentik
Authentik OpenID Connect Authentik, through OpenID Connect button Authentik
Box.com Box accounts button Box.com
Dropbox Dropbox accounts button Dropbox
Google Google accounts button Google
Keycloak the Keycloak identity provider button
LDAP an LDAP directory username and password LDAP
Microsoft Active Directory Active Directory, through LDAP username and password Active Directory
Microsoft Azure OAuth2 Microsoft Entra ID, formerly Azure Active Directory button Microsoft Entra ID
OAuth2 a provider that supports OAuth2 but not OpenID Connect button OAuth2
OpenID Connect any provider that supports OpenID Connect button OpenID Connect
Pangolin the people who are signed in to Pangolin, a reverse proxy button Pangolin
Pocket ID the Pocket ID identity provider button
SimpleSAMLphp SAML, Shibboleth, Active Directory Federation Services (ADFS) and similar systems button SimpleSAMLphp
Tinyauth Forward Auth the people who are signed in to Tinyauth, through the forward authentication of the proxy button Tinyauth
Tinyauth OpenID Connect Tinyauth, through OpenID Connect button Tinyauth

The Sign-in column shows how people sign in through a source of the plugin:

  • button: the sign-in page shows a button for the source. The button sends the person to the provider, and the provider sends the person back after the sign-in. This is single sign-on.
  • username and password: the person types the username and the password in the sign-in form, and the directory checks them. With the option Enable IWA SSO, the source can also get a button. See the page of the plugin.

A source of the Keycloak, Pocket ID or Authelia plugin needs the Issuer URL, the Client ID and the Client Secret. The source window shows the steps to follow in the identity provider, and the addresses that you register there.

The Pangolin plugin signs in the people whom Pangolin has already signed in, and it needs the address of the Pangolin dashboard and the trusted addresses of Pangolin. See Pangolin.

The two Tinyauth plugins sign in the users of Tinyauth. Tinyauth OpenID Connect uses Tinyauth as an OpenID Connect provider, and can import the groups of Tinyauth. Tinyauth Forward Auth signs in the people whom Tinyauth has already signed in, through the proxy in front of FileRun. See Tinyauth.

Note

There is no WordPress plugin. It was removed in FileRun 2026.3.0. WordPress can still be connected through the OpenID Connect or the OAuth2 plugin, with a WordPress provider plugin.

Where the sources are

The sources are in the control panel, under Security → Authentication. Only the superuser sees this page. The page has three sections:

  • Authentication sources: the list of the sources
  • Third-party authentication options: the options that apply to all the sources
  • URL customization: the addresses of the sign-up and of the sign-out

The list of the sources has these columns:

  • Name
  • the logo of the plugin
  • Plugin
  • Enabled
  • Position

The sources are listed in the order of their positions. The Add button is always shown. The buttons Edit, Test, Test sync and Delete are shown when a source is selected.

Note

The export of the settings does not include the authentication sources. On another installation, add the sources again.

Adding a source

  1. Click Add. The window Add authentication source opens.
  2. Select the plugin in the Plugin list. The window shows a description of the plugin, and a section with the settings of the plugin, such as OpenID Connect plugin options.
  3. Check the Name. FileRun fills in the title of the plugin, and you can change it.
  4. Choose the Role of new user accounts.
  5. Fill in the settings of the plugin, as described on the page of the plugin.
  6. Click Save.
  7. Select the source in the list, and click Test.

The Test button opens a window with the results of a test of the saved settings. For a source with single sign-on, the window shows the address that starts the sign-in through the source. Open this address in a private browser window to test the sign-in. The single sign-on works only while the source is enabled.

The Test sync button tests the import of the user accounts from a directory. Only the LDAP and Microsoft Active Directory plugins have an import. The command cron/users_sync.php runs the import of every enabled source that has one. See Command line tools.

Tip

Keep Allow local user accounts to log in on while you test a new source. When this option is off, only the superuser can sign in with a local password.

The settings of a source

The source window has three sections: Authentication source, Options, and the settings of the plugin.

The authentication source section

  • Plugin: the kind of system. You cannot change the plugin after the source is added.
  • Name: required. The sign-in button shows it, as "Sign in with" followed by the name. See also The group of the source.
  • Description: optional. The sign-in page shows it under the button.
  • Logo URL: optional. The address of an image that the sign-in button shows. Without an address, the button shows the logo of the plugin.
  • Enabled: a disabled source has no button on the sign-in page, and does not check passwords. Its settings stay.
  • Position: a number. The sign-in buttons are shown in the order of the positions, the lowest first. The sign-in with a password tries the sources in the same order. Sources with the same position are in the order of their names. The default is 0.

The options section

  • Role of new user accounts: required. FileRun gives this role to every account that the source creates. The list starts with - Please select -, and does not offer the Guest role. A role that a source uses cannot be deleted, also when the source is disabled. See User roles.

  • IP address limitation: optional. When the field has a value, the source works only for the visitors whose IP address matches it. For the other visitors, the source has no button and does not check passwords. The field holds one entry, in one of these formats:

    • one address: 1.2.3.4 or 2001:db8::1
    • CIDR: 1.2.3.0/24 or 2001:db8::/32. An IPv4 range can also be written as 1.2.3/24 or 1.2.3.4/255.255.255.0.
    • a range: 1.2.3.0-1.2.3.255 or 2001:db8::1-2001:db8::ff
    • a wildcard, for IPv4 only: 1.2.3.*

    An IPv4 address never matches an IPv6 entry. An IPv6 address never matches an IPv4 entry. An entry that FileRun cannot read matches no visitor. Behind a reverse proxy, fill in the Trusted proxies, so that FileRun sees the address of the visitor. See Trusted proxies.

  • Sync remote groups: shown only for the plugins that can read the groups of a person. These plugins are LDAP, Microsoft Active Directory, SimpleSAMLphp, Keycloak, Pocket ID, Authelia and Tinyauth OpenID Connect. The option has two checkboxes, which are both on for a new source:

    • Add users to new groups
    • Remove users from old groups

    These checkboxes apply each time that a person signs in again. See The group sync.

  • Move the N linked user accounts along if the issuer URL changes: shown in the window of an existing source, when N user accounts are linked to the identity provider of the source. See When the provider moves to a new address.

The group of the source

FileRun adds every account that a source creates to a group. The name of the group is the name of the source. FileRun creates the group when it does not exist.

When you rename a source, FileRun does not rename the group. The accounts that the source creates after the change go into a group with the new name.

The group sync

The plugins that can read the groups of a person have the option Groups to import, in the settings of the plugin. It lists the names of the groups that FileRun takes from the source. The source reports the groups of the person at each sign-in, and FileRun finds each group by its name, without regard to upper and lower case. A group that does not exist is created.

The first sign-in adds the new account to the reported groups of the list. At each later sign-in, the two checkboxes of Sync remote groups apply:

  • Add users to new groups: FileRun adds the account to the reported groups of which it is not a member yet.
  • Remove users from old groups: FileRun removes the account from the groups of the Groups to import list that the source no longer reports for the person.

FileRun removes the characters < and > from the names of the groups that the source reports.

The removal leaves alone every group that is not on the list, such as the Default groups of the sign-up and the groups to which an administrator added the account by hand. When you remove a group from the list, the accounts stay members of that group.

A removal is written to the activity log as "User removed from group", under the account that signs in. It has the same effects as the removal of a member by an administrator: FileRun deletes the web links, the folder notifications and the stars that the account had inside the shares of the group. See What the removal of a member does and Groups from authentication sources and from the import.

When a removal cannot be completed, the account stays in the group, and the sign-in stops. The next sign-in tries the removal again.

Editing, disabling and deleting a source

To edit a source, double-click it in the list. You can also select it and click Edit. The window Edit authentication source: Name opens. Make the changes and click Save.

To disable a source, clear its Enabled checkbox, and click Save. To enable it again, check the box.

To delete a source:

  1. Select the source in the list.
  2. Click Delete.
  3. In the window Delete the authentication source "Name"?, click Delete.

FileRun deletes the source and its settings. FileRun does not delete these:

  • the user accounts that the source created
  • the groups of these accounts
  • the links of these accounts to the identity provider
  • the sessions of the people who signed in through the source. These people stay signed in until their sessions end.

Caution

The deletion cannot be undone. To stop a source for a while, disable it instead.

When the provider moves to a new address

The accounts that are linked to an OpenID Connect provider are linked to its Issuer URL. When you change the Issuer URL of a source, the accounts stay linked to the old address. The message after the save holds the number of these accounts.

When the same provider moved to a new address, check Move the N linked user accounts along if the issuer URL changes before you click Save. The accounts are then linked to the new address. Leave the option off when the source now uses another provider. FileRun does not move the accounts when some accounts are already linked to the new address.

The sign-in page

The sign-in page shows a button for each enabled source that has single sign-on. A source whose IP address limitation does not match the address of the visitor has no button.

  • The text of the button is "Sign in with" followed by the name of the source.
  • The button shows the image of the Logo URL of the source. Without a Logo URL, the button shows the logo of the plugin.
  • The description of the source is shown under the button.
  • The buttons are in the order of the positions of the sources.
  • When there are several buttons, the page shows only the first button. The link More sign-in options shows the other buttons.

The sign-in page hides the username and the password fields when both of these conditions are true:

  • Allow local user accounts to log in is off.
  • No source that checks passwords is available to the visitor.

The link Sign in with a password then shows the fields. Only the superuser can sign in with them. See The superuser.

A link to the sign-in through one source

The address that starts the sign-in through a source is the address of FileRun, followed by /sso/?source= and the ID of the source. For example: https://files.example.com/sso/?source=2. The Test button of the source shows this address. You can use it in a link on another site, to send people directly to the provider.

Signing in with a username and a password

FileRun tries the enabled sources that check passwords, in the order of their positions. Only the LDAP and Microsoft Active Directory plugins check passwords.

  1. The first source that knows the username decides. When this source refuses the password, the sign-in fails. When this source cannot be reached, the sign-in also fails. FileRun does not try the next source in these cases. The message is "Invalid username or password" in both cases, whatever the username.
  2. When a source does not know the username, FileRun tries the next source.
  3. When no source knows the username, the account can sign in with its local password. This works only when Allow local user accounts to log in is on.

An LDAP source can tell that it does not know a username only when it has a Bind DN. In the Microsoft Active Directory plugin, this field is Bind User Principal Name. With only a User DN template, the source decides for every username.

When a source accepts the password, FileRun signs in the account that has the same username. When no account has this username, FileRun creates one. See The accounts that a source creates.

When no enabled source checks passwords, every account signs in with its local password. This works only when Allow local user accounts to log in is on. Otherwise, only the superuser signs in with a password, and every other sign-in with a password fails with "Invalid username or password", the message of a wrong password.

Local user accounts

The option Allow local user accounts to log in is under Third-party authentication options. It is on by default. When it is off and a source is enabled:

  • Only the superuser can sign in with a local password.
  • The sign-in page does not offer the password reset.
  • The sign-up of new users is not available.
  • The guest users cannot sign in with their usernames and passwords. They can still sign in with their private links.

When no enabled source is available to a visitor, because of the IP address limitation, that visitor signs in with the local password. This is true whatever the option says.

The superuser

The superuser always signs in with the local password. This is true whatever sources are enabled, and whatever Allow local user accounts to log in says. FileRun never asks a source about the username of the superuser. So a problem with a source cannot lock the superuser out.

When the sign-in page hides the password fields, click Sign in with a password. When the page has several buttons, this link is shown after you click More sign-in options.

The two-factor authentication of the superuser account still applies.

The accounts that a source creates

The first time that a person signs in through a source, FileRun creates a user account from the details that the source sends, such as the username, the name and the e-mail address. The account gets the Role of new user accounts of the source, the group of the source, the reported groups of Groups to import, and the Default groups of the sign-up settings. See Default groups.

FileRun removes the characters < and > from the first name and the last name that the source sends. It builds the home folder from the path template of the role, or from the homeDirectory attribute of a directory, and checks the path with the rules for the path. When the path breaks a rule, FileRun does not create the account, and the sign-in fails with "Failed to create home folder!". See Accounts created by sign-up or by an authentication source.

The account has no FileRun password. Its user signs in through the source, and Forgot password? sends the account no code. An administrator can give the account a password in the user window of the control panel.

FileRun does not create the account when another user account already has the e-mail address that the source sends. The sign-in fails with "The e-mail address is already used by another user account!", and the import of cron/users_sync.php skips the person. An administrator resolves the conflict, for example by changing the address of the other account.

Linked accounts

A link connects a user account to one account at an identity provider. FileRun stores the ID of the provider account. The provider account then always signs in the same user account, also after the username or the e-mail address changes at the provider. A user account can have one link for each provider.

These plugins link the accounts:

  • OpenID Connect
  • Authentik OpenID Connect
  • Keycloak
  • Pocket ID
  • Authelia
  • Pangolin
  • Tinyauth OpenID Connect
  • Tinyauth Forward Auth
  • Google
  • Microsoft Azure OAuth2

The other plugins find the account by its username, at each sign-in.

A link is made in these cases:

  • A person signs in through the provider for the first time, and no account has the username. FileRun creates the account and links it.
  • A person signs in through the provider, and the account that has the username has no password. FileRun links this account.
  • A user clicks Link on the Linked accounts page of their account settings. See Your account settings.

An account that has a password is not linked by its username. The sign-in through the provider fails, and the page shows "This user account has a password. Sign in with the password, then link the identity provider in the account settings.". The user signs in with the password, and links the provider from the account settings.

An administrator can remove a link in the user window of the control panel. See Editing user accounts.

A link stays when its source is disabled or deleted. The link signs nothing in until an enabled source uses the same provider again.

Link existing user accounts by username

The option Link existing user accounts by username is under Third-party authentication options. It is off by default. When it is on, an existing account that has a password is also linked by its username, at its first sign-in through the provider. Use it to move many accounts to a provider at once, so that the users do not have to link the provider themselves.

The superuser is never linked by its username.

Warning

While this option is on, a person who can change their username at the identity provider can sign in as any account that has that username and is not linked yet. Turn the option off when the accounts are linked.

The other options

Third-party authentication options also has these options:

  • Allow users to protect their accounts with two-factor authentication.: off by default. When it is on, the users who sign in through single sign-on can set up a passkey or an authenticator app. FileRun then asks for it at each sign-in. When it is off and a source is enabled, the account settings do not show the page Two-factor authentication, and the single sign-on does not ask for a second factor.
  • Enable debugging: off by default. The sign-in through a source shows diagnostic details, for example the user details that an OAuth2 or OpenID Connect provider sends. Turn it off in production.

URL customization has these options:

  • "Create account" URL: when the built-in sign-up is not available, the Create account button of the sign-in page opens this address.
  • Redirect URL after logout: the address that the browser opens after the sign-out. When it is empty, the browser opens the address of FileRun.
  • Logout URL: the address of the sign-out link, in place of the sign-out of FileRun.
  • Hide the logout option: the users do not see the sign-out option. The superuser still sees it.

The API

The superuser can also list, add, edit and delete the sources through the API, with the endpoints Core/!super/auth_sources/list, add, edit and delete. See API changes in 2026.4 and the OpenAPI specification.

After the update from an older version

Before FileRun 2026.4.0, only one plugin could be enabled at a time. The update turns the plugins into sources:

  • The update creates a source for each plugin that had settings.
  • The source of the plugin that was enabled is enabled. The other sources are disabled.
  • Each source gets the role of the new user accounts, the IP address limitation and the group sync options that were set before the update.
  • Each source gets the internal name of its plugin, for example OIDC or LDAP. The accounts that the plugin created are in a group with this name, so they keep their group.
  • Every source has the position 0.

After the update, open Security → Authentication, and delete the sources that you do not need. When no role was set before the update, the sources have no role. Choose a role in the window of the source before you save it.

Disabling the authentication integration

When a source does not work, the people who sign in through it cannot sign in. The superuser can still sign in with the local password, and fix or disable the source. See The superuser.

When the superuser password is also lost, reset it from the command line. See Resetting the superuser password.

To disable every source without the control panel, add this line to customizables/config.php:

 1$config['system']['auth']['disable'] = true;

While this line is in the file:

  • No source works, and the sign-in page shows no source buttons.
  • Every account that has a local password signs in with it.
  • The Test button shows "The third-party authentication is disabled via the config file!".

Remove the line when the sources work again.

Note

The update to FileRun 2026.4.0 removes the setting auth_plugin. The SQL query on this setting, which this page gave for the older versions, has no effect.