Authentication Providers
IMPORTANT: This page applies to the Classic Console only. With the Sicura Console, LDAP and Active Directory providers are configured under Settings -> Authentication, and Google sign-in is not available.
Authentication providers let users sign in to the Classic Console with an account from a directory or sign-in service. The Classic Console includes these providers, and none of them needs to be installed:
- LDAP and Active Directory — users sign in on the Console login page with their directory user name and password
- Google — users sign in with the Sign in with Google button on the login page
- Local — accounts created in the Console itself; see Users
Note: Although it is possible to add providers using sicura-console.yaml, it is highly recommended to add them using the user interface.
Using the User Interface¶
To add a provider:
- Navigate to Access Management -> Providers and click New Provider.
- Enter a Provider Name. For LDAP and Active Directory, users choose this name on the login page.
- Optionally, turn on Set as default auth provider.
- To create a Console user the first time someone signs in with an account the Console does not know, turn on Create new user on first login. You can then choose a group under Automatically add created users to group:.
- Select the provider under Authentication Provider:
ldap,active directoryorgoogle auth. The list also haslocalauth, the provider for accounts created in the Console, andokta auth, which this documentation does not cover. - Fill in the provider's options, described in the sections below.
- Click Create Identity Provider.
The Console never sends a stored password or client secret back to the browser, so those fields are empty when you edit a provider. Leave them blank to keep the current value, or enter a new one to replace it.
Using sicura-console.yaml¶
To configure a provider in sicura-console.yaml, add an element to the main.directory_services list. Each element takes the following parameters:
name— the name of the provider; for LDAP and Active Directory, shown as a selectable domain on the Classic Console login page (e.g.name: "Company LDAP")auth_provider— the authentication provider to use (e.g.auth_provider: "ldap")create_user— whether to automatically create a new Console user on successful login with an unlinked account (e.g.create_user: true)auto_group— (optional) the ID of the Console group that automatically created users are added tosettings— a hash of additional provider-specific options; see each provider's section below
The Console matches the list against its providers by name every time it starts: it updates a provider that already exists, and removes any setting of that provider that is no longer in the file.
LDAP¶
In the user interface, select ldap under Authentication Provider and fill in Host, Port, Bind DN, Bind DN Password, Search Base, Login Attribute and, optionally, Search Filter.
An example of two valid LDAP configurations in sicura-console.yaml:
main.directory_services:
- name: "LDAP Test Server"
auth_provider: 'ldap'
create_user: true
settings:
search_base: "ou=People,dc=example,dc=local"
search_filter: ''
login_attribute: 'uid'
host: "127.0.0.1"
port: 9080
binddn: ''
binddn_password: ''
- name: "Staging LDAP Test Server"
auth_provider: 'ldap'
create_user: true
settings:
search_base: "ou=People,dc=staging,dc=local"
search_filter: '(&(objectClass=person)(objectClass=user))'
login_attribute: "uid"
host: "192.168.0.27"
port: 9080
binddn: "cn=admin,dc=staging,dc=local"
binddn_password: 'Pas$word1'
The following settings are specific to LDAP authentication and go in the settings hash:
search_base— the organization unit and domain component stringsearch_filter— (optional) an LDAP filter that narrows down who can sign in, for example(&(objectClass=person)(objectClass=user))- If the filter is not set or is an empty string, any account under
search_basewhoselogin_attributematches the user name can sign in
- If the filter is not set or is an empty string, any account under
login_attribute— the attribute by which user accounts are looked up in the LDAP serverhost— the IP or domain of the target LDAP serverport— the port to connect to the target LDAP serverbinddn— the full path to the object you are authenticating againstbinddn_password— the password for authentication
Note: Every LDAP setting except for search_filter must be configured. Use an empty string if a setting is not in use.
Note: The Classic Console connects to the directory without TLS and has no setting for LDAPS or StartTLS, so give it a port on which the directory accepts unencrypted LDAP connections.
Active Directory¶
In the user interface, select active directory under Authentication Provider. The connection details are the same as for an LDAP provider; the primary difference is that the Login Attribute is samaccountName instead of uid.
An example configuration in sicura-console.yaml:
main.directory_services:
- name: "Company Active Directory"
auth_provider: 'active directory'
create_user: true
settings:
search_base: "ou=People,dc=staging,dc=local"
search_filter: '(&(objectClass=person)(objectClass=user))'
login_attribute: "samaccountName"
host: "192.168.0.27"
port: 389
binddn: "cn=admin,dc=staging,dc=local"
binddn_password: 'Pas$word1'
Google OAuth¶
In the user interface, select google auth under Authentication Provider and fill in Client ID, Client Secret and, optionally, Domain. The form lets you add only one Google provider.
The following settings are specific to Google OAuth and go in the settings hash in sicura-console.yaml. The client ID and secret are issued by Google when you register the application for OAuth:
client_id— the OAuth 2.0 client ID (e.g.<clientid>.apps.googleusercontent.com)client_secret— the OAuth 2.0 client secret issued alongside the client IDdomain— (optional) a Google Workspace domain to restrict sign-ins to; only Google accounts belonging to this domain can log in (e.g.example.com)
When create_user is set to true, the Classic Console creates a new Console user if someone logs in with a Google account not already linked to a Console account.
An example of what the configuration may look like: