Documentation
Getting Started
Data Grid
Modeling
Business Rules
Approvals
Administration
Integration & API
Installation
Migrating from MDS
Architecture

Authentication

Primentra uses token-based authentication. Everyone signs in with an email address and a password before they can see any data.

The Primentra sign-in screen
The Primentra sign-in screen(click to enlarge)

First-run setup

When the database holds no real user accounts, Primentra shows a setup screen instead of the login screen.

  1. Enter the Email for the first administrator. It becomes the login name.
  2. Enter a Display name.
  3. Enter a Password of at least 8 characters, or click Generate.
  4. Click Create account & continue.

The account is added to the Administrators role and signed in straight away. The setup screen is never shown again while accounts exist.

Sign in

Enter your email and password, then click Sign in.

  • Passwords are case-sensitive.
  • The eye icon reveals the password so you can check it.
  • After a wrong password, the screen reports how many attempts remain before the account locks.
  • After signing in you land on the dashboard.

Sign-in is rate limited to 10 attempts per 15 minutes per IP address. Successful sign-ins are not counted.

A welcome email sent to an account with Must change password carries a one-click link instead of a password. Clicking it signs the user in and goes straight to the Secure your account screen, where they choose a personal password. The application stays closed until they do.

The link is valid for 72 hours and works once. After that the login screen reports:

This login link has expired or already been used. Please contact your administrator.

Ask an administrator to resend the welcome email from the mail icon on the user's row.

Forced password change

When an account is flagged User must change password at next login, the Secure your account screen appears immediately after sign-in. It asks for a new password and a confirmation — nothing else.

Pair Must change password with the welcome email. The one-click link is what allows a new password to be set without the old one.

Forgot your password

  1. Click Forgot password? on the login screen.
  2. Enter your email address and click Send reset link.
  3. Open the mail and click Reset password.
  4. Enter a new password twice and click Set new password.

The link is valid for 30 minutes and replaces any earlier link for the same address. The confirmation message is the same whether or not the address exists, so the screen never reveals which accounts are real.

Requests are limited to 5 per hour per IP address, and reset attempts to 10 per 15 minutes.

Password reset needs the Application URL set under Settings → General Settings. Without it, the reset screen reports that the feature is unavailable and no mail is sent.

A completed reset also clears a lockout and resets the failed-attempt counter.

Sign out

Click the gear icon in the top-right corner, then Sign out at the bottom of the menu.

Signing out invalidates the token on the server, removes it from the browser, and returns you to the login screen. Bookmarked URLs redirect to the login screen until you sign in again.

How authentication works

  • Passwords are hashed with scrypt and a random salt. Plain text is never stored.
  • A successful sign-in returns a random 64-character hex token.
  • The token is kept in localStorage and sent as an Authorization: Bearer header on every request.
  • Every sign-in, failed attempt, and lockout is written to the audit log.

Ready to get started?

Start managing your master data with Primentra today.

View Pricing
Authentication | Users, Roles & Security | Docs | Primentra