Skip to Content
Admin GuidesReaqtAuthentication

Authentication

Reaqt supports three ways to sign in:

  • Local accounts: usernames and passwords stored in Reaqt. Local sign-in always works, regardless of the LDAP and SAML settings, so you do not lose access to the local admin account while you set up LDAP or SAML.
  • LDAP: users sign in on the normal login form with their directory username and password.
  • SAML 2.0 single sign-on: users select a single sign-on button on the login page and authenticate at your identity provider (IdP).

LDAP and SAML accounts are provisioned automatically the first time a user signs in, and appear on the Users page with the type LDAP or SAML.

Initial administrator account

A fresh installation seeds a single account with username admin, email admin@ascender.local, and password admin. The account has the system.admin permission and is a member of the built-in Administrators team.

A different initial password can be provided through the ADMIN_PASSWORD environment variable. It is applied only when the database is first initialized, so changing it on an existing deployment has no effect; rotate the password from the web UI instead. For how the Ascender Pro installer sets this value, see Installing Reaqt.

Warning

If you deployed without setting an initial password, change it immediately after first login. See Users.

Sessions and login protection

  • A successful sign-in starts a session that lasts seven days. Session data is stored in an encrypted, HTTP-only cookie, which is marked secure when Reaqt is served over HTTPS. The encryption key is read from /run/secrets/session-key or the SESSION_KEY environment variable.
  • Login attempts are rate limited to protect accounts against brute-force attempts.
  • Signing out clears the local session. For SAML users, signing out also performs single logout at the IdP when a Logout Service URL is configured.

Open the authentication settings

Open Administration → Settings, then select Authentication. The page has an LDAP tab and a SAML tab, which are configured independently. Each tab has Return, Test, and Save buttons.

The authentication settings page with LDAP and SAML configuration

LDAP

LDAP settings

FieldRequiredDescription
Enable LDAPNoMaster toggle for LDAP sign-in.
LDAP ServerYesURL of the LDAP server, including ldap:// or ldaps://, for example ldaps://ldap.example.com.
Base DNYesThe base DN used for locating users and groups, for example dc=example,dc=com.
User DNYesThe DN used to authenticate (bind as) the user. Use <username> as the placeholder for the username, for example uid=<username>,cn=users,dc=example,dc=com.
Test Bind UserNoThe user (DN) to bind with when you select Test.
Test Bind PasswordNoThe password used for the test bind. Stored encrypted. Leave it blank to keep the currently saved password.
Require GroupNoIf users must be members of a group to sign in, enter the full DN of that group, for example cn=ascender-users,ou=groups,dc=example,dc=com.
Server CA CertificateNoThe PEM-encoded CA certificate of your LDAP server. Enter it if you receive a "CA unknown" error.

Select Save to store the settings.

Test the LDAP connection

Select Test to check connectivity. The test binds to the LDAP Server as the Test Bind User with the Test Bind Password. Values left blank on the form fall back to the saved values, so you can test with the stored password without re-entering it.

How LDAP sign-in works

  1. The user enters their username and password on the login form.
  2. Reaqt connects to the LDAP Server. For ldaps:// URLs the connection uses TLS from the start. For ldap:// URLs Reaqt upgrades the connection with StartTLS before binding; if the server does not support StartTLS, it continues without encryption.
  3. Reaqt binds with the User DN, with <username> replaced by the username, and the password the user entered. If the bind fails, sign-in fails.
  4. If Require Group is set, Reaqt checks that the user is a member of that group and refuses sign-in otherwise.
  5. Reaqt looks up the user's display name and email address in the directory. If none are found (or they are not valid), the username is used as the name and <username>@ldap.local as the email address.
  6. Reaqt creates the account with the type LDAP, or updates the name, email, and type of an existing account with the same username.
  7. Team membership is reconciled against the LDAP Group of every team (see Team mapping).

Group membership is checked with searches under the Base DN, covering both Active Directory (memberOf, including nested groups) and OpenLDAP posixGroup (memberUid) layouts.

Warning

When Server CA Certificate is empty, Reaqt does not verify the LDAP server's TLS certificate. Enter your server's CA certificate to have the certificate verified.

SAML

Reaqt acts as a SAML 2.0 Service Provider (SP) and works with standards-compliant identity providers. It never stores SSO passwords.

SAML settings

The SAML tab has two toggles at the top and two columns of fields.

FieldRequiredDescription
Enable SAMLNoMaster toggle for SAML sign-in. When enabled, the login page shows the single sign-on button.
Binding MethodNoHow the authentication request is sent to the IdP: Redirect Binding or Post Binding.

Service Provider Information

This column describes Reaqt itself. You register these values with your IdP.

FieldRequiredDescription
Sign RequestsNoSigns outgoing authentication and logout requests with the SP private key, using RSA-SHA256. Requires the certificate and private key below.
Entity IDYesThe SP entity ID, for example https://ascender-reaqt.example.com/. It must match the audience your IdP places in the assertion.
Assertion Consumer Service URLYesThe public URL your IdP posts the SAML response to. It must end in /acs, for example https://ascender-reaqt.example.com/acs.
Public CertificateOnly when signingThe SP public X.509 certificate (PEM). Leave blank to keep the saved value.
Private KeyOnly when signingThe SP private key (PEM, PKCS#1 or PKCS#8). Stored encrypted. Leave blank to keep the saved value.
Login Button LabelNoThe text shown on the SAML button on the login page. Defaults to LOG IN TO YOUR COMPANY.

Identity Provider Information

This column describes your IdP. Copy these values from your IdP's application settings or metadata.

FieldRequiredDescription
Entity IDYesThe IdP issuer or entity ID, compared against the issuer of the response.
Single SignOn URLYesThe IdP single sign-on URL the authentication request is sent to.
Logout Service URLNoThe IdP single logout URL. Leave blank to only clear the local session on logout.
Public CertificateYesThe IdP signing certificate (PEM or bare base64), used to verify the response signature.

Select Save to store the settings, then select Test. The test checks that the saved configuration is complete and that the certificates and key parse correctly; it does not perform a sign-in. Use the login page to verify sign-in with your IdP.

SAML endpoints

Register these endpoints with your IdP. They are public, because your IdP posts to them across sites.

PurposeMethodPath
Start sign-in from ReaqtGET/login/saml
Assertion consumer servicePOST/acs
Single logoutGET, POST/slo

The single logout endpoint is derived from the Assertion Consumer Service URL by replacing /acs with /slo.

How SAML sign-in works

  1. The user selects the single sign-on button on the login page.
  2. Reaqt builds an authentication request and sends it to the IdP's Single SignOn URL using the configured binding.
  3. The user authenticates at the IdP.
  4. The IdP posts a signed SAML response to Reaqt's /acs endpoint.
  5. Reaqt validates the response (IdP signature, issuer, recipient, audience, and validity window), maps the returned attributes to account fields, creates or updates the local account, reconciles team membership, and starts the session.

Sign-in started from the IdP's own dashboard (IdP-initiated sign-in) is also supported. Every validation still applies, except the correlation between the response and a request Reaqt sent.

Note

Serve Reaqt over HTTPS. SP-initiated sign-in uses a short-lived cookie that browsers only store over HTTPS. Without HTTPS the response is still accepted and fully validated, but it is treated as IdP-initiated.

Attribute mapping

Reaqt reads the following attributes from the assertion. Attribute names are matched case-insensitively, and URI-style names (such as http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress) are matched on their last path segment. The first value of the first matching attribute is used.

Account fieldAccepted attribute names
Usernameusername, nickname, userprincipalname, samaccountname
Emailemail, mail, emailaddress
Full namename, displayname, commonname, preferredname
First namegivenname, firstname
Last namesurname, lastname
Groupsgroup, groups (all values)

The account is resolved as follows:

  • The username is the username attribute, or the subject NameID when no username attribute is present, or the email address when neither is present. Usernames are converted to lowercase.
  • If an account with that username does not exist, Reaqt looks for an account with the same email address, so an existing local or LDAP account can be matched.
  • A matched account is converted to the type SAML, and its name and email are refreshed from the IdP. If no account matches, a new SAML account is created.
  • The display name is the first and last name when both are present, otherwise the full name, first name, username, or email address.
  • Deactivated accounts are refused.

Enable verbose debug logging to have Reaqt log every attribute it receives, which helps when mapping attributes from an unfamiliar IdP.

Team mapping

Teams can be linked to directory and SSO groups with the LDAP Group and SAML Group fields on the Teams page. The fields appear only while LDAP or SAML is enabled.

Every time an LDAP or SAML user signs in, Reaqt reconciles their membership of every team that has a mapped group:

  • If the user is a member of the mapped group, they are added to the team.
  • If the user is not a member of the mapped group, they are removed from the team.
  • Teams without a mapped group are left untouched, so you can still manage their membership manually.

For LDAP, the LDAP Group is a group DN and membership is checked in the directory. For SAML, the SAML Group is compared case-insensitively against the values of the group or groups attribute in the assertion.