Enabling TOTP multi-factor authentication in midPoint

midPoint 4.11 adds a TOTP authentication module to flexible authentication. This page explains how to plan authenticator-app MFA for midPoint logins, enrollment, reset and emergency access.

On this page

Why enable TOTP MFA in midPoint and when to do it

The 4.11 totp authentication module adds time-based one-time password MFA to midPoint's flexible authentication. Administrators and self-service users sign in to midPoint to approve requests, run certification campaigns and change the role model, and that platform decides who gets access to the systems it provisions to. A stolen password for an administrator account can therefore reach far beyond midPoint itself. Adding an authenticator-app second factor raises the cost of that attack, and teams should treat it as a baseline control for any login path that can change access, not as an optional extra.

Plan to enable it before midPoint is opened to broad self-service use or before administrative accounts are scoped down, because enrollment and reset flows are easier to design before users depend on them. Decide which login paths need the second factor (the administrative GUI, self-service, or both), whether it applies to all users or only to privileged roles, and how users who lose their device will recover. Confirm that your midPoint version is 4.11 or later, since the totp module is documented in the 4.11 release notes, and check the midPoint releases page for support dates before you commit to a version.

TOTP does not extend to everything midPoint touches. midPoint is an identity management system, not an access management or SSO server, and it does not act as an OAuth2, OpenID Connect or SAML provider for other applications. The factor protects midPoint's own sign-in only. Target systems that authenticate users directly, such as Active Directory or cloud applications, keep their own controls, and MFA for them must be designed in those systems or in the SSO service that fronts them. Confirm this boundary with your identity architecture team before you present MFA as coverage for the whole identity estate.

Which MFA configuration fits which situation

This table compares four ways to scope TOTP in midPoint: all users, administrators only, the self-service interface only, and a separate sequence for service access. Read each row for the situation it fits and the operational cost it carries. The main takeaway is that the narrower the scope, the less friction for users, but the more carefully you must confirm that no unprotected path reaches sensitive functions.

ConfigurationWhen it fitsOperational trade-off
TOTP required for all interactive usersRegulated environments where every employee login must carry a second factor, and where the identity team can support enrollment at scaleHighest enrollment and help desk load; every user needs a device and a reset path, and lockouts affect the whole workforce
TOTP for administrators onlyTeams starting with privileged access, where the admin console and authorization changes carry the most riskLimits user impact, but you must confirm that admin accounts cannot be reached through a weaker sequence or the self-service login
TOTP on the self-service interface onlyOrganizations whose main exposure is user-facing self-service, such as password resets and access requestsProtects self-service flows, but administrative logins may still use a password-only sequence unless you configure them separately
Separate sequence for service or automation accessIntegrations, scheduled tasks and API clients that cannot answer a one-time code interactivelyKeeps automation working, but these accounts need strong credentials, restricted authorizations and their own monitoring
Combined scope by role or populationMixed workforces where administrators, approvers and ordinary users have different risk levelsMost precise, but the sequence and policy logic grows and needs documented review each time roles change
Emergency access pathEvery configuration, so that a lost device does not lock out the only administratorMust be tightly controlled and logged; confirm how it is enabled, who can use it and how it is revoked

How a TOTP login step is sequenced after the first factor

The login starts when the user submits the first factor to midPoint's login page. The authentication sequence then hands the request to the totp module, which checks whether the user already has an authenticator registered. Users with a registered device enter a one-time code, and a valid code grants the session while a failed code returns to the prompt. Users without a device are routed to enrollment first. Confirm the exact sequence behavior and retry limits in the 4.11 documentation before you finalize the design.

Sequence of the TOTP step after the first login factor, including enrollment.

Setting up TOTP MFA in midPoint 4.11

This sequence takes a midPoint 4.11 deployment from a confirmed runtime and configuration backup to an authenticator-app second factor that is enrolled through self-service, tested with a pilot account, and checked for failed-code and lockout behavior. The output is a verified TOTP sequence that can be rolled out to wider user groups.

  1. Confirm version and Java runtime

    The platform engineering lead confirms that the target instance runs midPoint 4.11, the release that adds the totp authentication module to flexible authentication. Check the release notes and the system requirements page for the Java runtime that 4.11 supports, and confirm it against the JVM on each application node. Record the exact build number and JDK version in the change ticket. Done when every node reports the same version and a supported Java runtime, and the ticket lists both values.

  2. Back up configuration and repository

    The administrator takes a consistent backup of the midPoint home directory, including the configuration and keystore, and of the PostgreSQL repository, before any authentication change. Store the backup outside the application host and confirm access to the keystore is restricted to the same people who manage it today. Restore the backup to a test environment and confirm midPoint starts and the admin login works. Done when a restore test has succeeded and the backup location and owner are recorded.

  3. Define the TOTP authentication sequence

    In the administration interface, the administrator adds a sequence that uses the totp module alongside the existing password module, and binds it to the pilot group or to the administrator login path first. Keep the password step as the first factor and make the TOTP step required rather than optional for the bound group. Save the sequence in a non-production environment and review the exported XML to confirm the module order and the flags match the design. Done when a pilot login prompts for the password and then for a one-time code.

  4. Configure enrollment in self-service

    The administrator enables the self-service pages that let a user register an authenticator app, and assigns those pages to the pilot group only. Confirm the user sees a enrollment screen after the first password login, scans the provisioning key, and submits a valid code to complete enrollment. Check that the enrollment record is stored against the user object and that the page cannot be reached by users outside the pilot group. Done when a pilot user completes enrollment and the stored state is visible to an administrator.

  5. Test with a pilot account

    A named pilot user, with an administrator observing, logs in with the password and the authenticator app across a fresh browser session, a logout, and a second device if one is available. Test a correct code, an expired code, and a code from the adjacent time window, and confirm each produces the expected outcome. Record the results with timestamps in the test log. Done when the pilot user can log in repeatedly and the test log shows the expected result for each case.

  6. Verify failed-code and lockout behavior

    The security engineer enters wrong codes deliberately for a test account until the configured attempt limit is reached, then confirms the account is locked or the login is refused as designed. Check the audit or log entries for each failed attempt and for the lockout, and confirm the account unlocks through the agreed administrator process. Verify that a successful login after the reset requires the second factor again. Done when failed attempts, lockout and recovery are all visible in the logs and match the written policy.

  7. Document emergency access and reset

    The administrator writes down how a user resets a lost authenticator through an administrator, and how break-glass administrator access works if TOTP enrollment is unavailable. Confirm which accounts are excluded from the TOTP sequence, who holds their credentials, and where they are stored. Test the reset path with the pilot account before wider rollout. Done when the runbook has been walked through once by someone other than its author and the break-glass account has been tested.

How enrollment and reset work in self-service

TOTP enrollment and reset touch the same trust decision: who is allowed to bind a second factor to an account. The four items below cover the normal path, the lost-device path, the administrator path and the record that proves what happened.

First-time enrollment

A user who signs in for the first time after the TOTP module is added to the authentication sequence is asked to bind an authenticator app to their account. The enrollment step should run only after the primary password check succeeds, so an attacker holding only a password cannot register their own device. Check whether your sequence forces enrollment for all users or only for a role, and test the path with a real account before any rollout.

4.11 release notes

Device replacement

When a user changes phones, they need to re-enroll without help from a service desk on every occasion. Decide whether self-service replacement is allowed at all, and if so, what the user must present first, such as the existing password plus a fresh factor or a verified email. Document the answer, because it determines how often administrators are pulled into routine work.

Reset by an administrator

For a lost device with no working recovery method, an administrator clears the TOTP binding so the user can enroll again. Limit this to a defined administrator role, not general Superuser access, and require a ticket or approval reference for each reset. Confirm which midPoint authorizations allow changing another user's credentials, since that right is what makes the reset possible.

Identity verification before re-enrollment

Tell the reader to confirm how the self-service reset flow verifies identity before a device is re-enrolled. Ask Evolveum or test in a non-production environment which factors the flow accepts, whether it sends a notification to the user's known address, and whether a reset can be triggered by someone who only knows a username. Weak verification here defeats the MFA control entirely.

Audit trail for MFA changes

Every enrollment, replacement and administrator reset should leave a record showing who changed the factor, when, and under which authority. Confirm that the audit records capture TOTP binding changes in your deployment, and that they reach the audit database you use for review. Test by performing one enrollment and one reset, then checking that both appear with the correct actor.

Keeping emergency access without weakening MFA

Once TOTP is required for administrator logins, you need a break-glass path for the case where an administrator loses the authenticator device, and that path must be designed so it does not quietly undo the MFA you just enabled. Decide in advance who may use it, which account or role it grants, and who approves its use. Keep the set of break-glass accounts small, and give each one only the authorizations needed to re-enroll the locked-out administrator, not the full Superuser role.

Build the break-glass account with the same discipline as the rest of your administrative model. Scope its authorizations using the approach in the least-privilege administration work for midPoint, so that the account can reset a TOTP enrollment or restore a login without holding #all or other broad rights. Store its credentials offline under dual control, and make sure every use generates an alert that reaches your security team. Confirm how your midPoint version records authentication events and whether those events can be exported to your central logging platform before you rely on them for detection.

Do not let break-glass become a permanent bypass. Set a rule that the account is disabled or its credentials rotated after each use, that the locked-out administrator re-enrolls a new TOTP device promptly, and that a periodic review confirms the account has not been used outside a documented incident. Test the full path before go-live: lock a test administrator out, recover through the break-glass procedure, confirm the alert fired, and confirm that normal MFA is enforced again afterward. Record the results as evidence for your access reviews.

Limits to confirm in your environment before rollout

The TOTP module changes how midPoint checks a second factor, but it does not decide on its own whether every entry point is covered. The cards below list the items to verify in your own deployment, from login surfaces and load balancers to API and connector credentials, before you announce MFA to users.

Every login surface uses flexible authentication

Confirm that each path into midPoint, including the end-user self-service pages, the administrator console, and any custom or legacy login endpoint, runs through the flexible authentication sequence where the TOTP module is configured. A surface that authenticates through a different path can accept a password without the second factor. Test each one with a non-administrator and an administrator account and record the result.

4.11 release notes

Supported authenticator apps and enrollment

Confirm which authenticator applications your users run and that they generate standard time-based codes compatible with the midPoint TOTP module. Check the clock tolerance on user devices, since drift can cause repeated rejections. Decide what users do when they lose a phone, and who verifies identity before a second factor is reset.

Behavior behind your load balancer

Verify how the second-factor step behaves when requests for one login pass through a sticky HTTP load balancer across multiple midPoint nodes. Confirm that session state and the sequence position survive node changes, and that the client IP or forwarded headers your proxy sets do not break the flow. Test with a node restart during an in-progress login.

Connector credentials and REST API authentication

TOTP protects interactive logins. It does not, by itself, change how connector credentials or REST API clients authenticate, so confirm which service accounts and API calls still rely on passwords alone. Document each one and decide whether it needs a separate control, such as a restricted account or network limit.

Midpoint is not an SSO or OIDC server

midPoint is an identity management system and does not implement the server side of OAuth2, OpenID Connect or SAML. If your organization expects a single sign-on service to enforce MFA for many applications, that control must come from your identity provider or access management layer, and midPoint's interface can only authenticate against an external SSO service. Confirm where MFA is enforced for each application.

Evolveum FAQ

Verify the 4.11 release for your environment

The TOTP module arrives in midPoint 4.11, which is planned as a feature release. Confirm that your target version, Java runtime and database settings match the supported combination, and check the release notes for changes to authentication before you upgrade a production instance.

Read the 4.11 notes

Questions teams ask before enabling TOTP in midPoint

Who does the work of enabling TOTP in midPoint?

Either your own platform or identity team does it, or an implementation partner does it under a written scope. The work covers the totp authentication module, the authentication sequences that use it, enrollment and reset in self-service, and emergency access. Your team owns the decisions about which roles must use MFA, how enrollment is verified and who approves exceptions. The cost of a partner engagement comes from the agreed scope, so ask for a quote that lists each sequence, each user population and each test environment separately.

Can an internal team enable TOTP in midPoint without outside help?

Yes, if the team already runs midPoint in production and is comfortable editing authentication sequences and testing login paths. midPoint 4.11 adds the totp module to flexible authentication, so the configuration is a change to midPoint's own objects rather than a separate product. The risk sits in the details: a wrong sequence order can lock out administrators, and self-service reset flows need the same review as login. Teams without recent midPoint authentication experience usually benefit from a review of the sequences before go-live. Confirm the exact module behavior against the midPoint 4.11 release notes for your target version.

What does the work need from our team?

Three things are needed before work starts. First, dedicated test accounts in each user population, including at least one administrator account and one account in each role that will be required to use MFA. Second, named identity owners who can confirm which roles, organizations and user groups must enroll, and who decides on exceptions. Third, a change window for the production switch, plus a rollback plan that keeps a known-good sequence available. Ask the partner to list these inputs in the written scope so that dates depend on your inputs, not on assumptions.

How long does a TOTP pilot take?

The duration depends mainly on how many authentication sequences exist and how many user populations must be covered. A single sequence with one enrollment path and one test population is a smaller job than a set of sequences covering administrators, staff, contractors and self-service registration. Each sequence needs a test pass for login, failed attempts, enrollment, reset and emergency access. No duration is supplied for this topic, so ask any vendor or partner to state the pilot length in writing, with the number of sequences and populations it assumes.

What is the sequence complexity and why does it change the timeline?

A sequence is the ordered list of authentication steps midPoint applies to a login, such as a password step followed by a TOTP step. Complexity grows when different roles need different steps, when self-service and administrative consoles use different entry points, or when external SSO is involved. Each added branch multiplies the test cases, because you must confirm that a user can reach the correct step and that no path skips MFA. Map every entry point before estimating the pilot, and treat any path that bypasses the TOTP step as a defect.

What recurring work follows after TOTP is enabled?

Recurring work includes reset requests when users lose their authenticator device, periodic review of emergency access accounts, and verification of the sequences after each upgrade. Reset handling depends on how self-service reset and identity checks are designed, so decide who verifies a requester before a reset is approved. Upgrades matter too: midPoint's feature releases, including 4.11, are on a different support cycle from long-term support releases, so plan to retest the sequences whenever you move to a later version. Ask for a runbook that names the owner of each recurring task.

Does enabling TOTP change the support obligations for midPoint?

It can, because a login change affects every user and administrator, so support scope should cover the new failure modes. Evolveum offers Product Support subscriptions for resolving product bugs, with an 8x5 next-business-day or 24x7 SLA, and Platform Subscriptions that add feature development. Those subscriptions are a separate decision from the TOTP work itself, and the page lists no prices. Confirm with Evolveum which support level covers authentication defects in your target release before you commit to a go-live date.

How DeployOpen scopes and delivers midPoint MFA work

The sequence turns a TOTP requirement into a written scope, a configured authentication sequence in your own infrastructure, and a tested, documented rollout that your security team can review and run.

  1. Agree the written scope

    DeployOpen and your team define which midPoint logins need TOTP, which user populations and administrator accounts are included, how enrollment and reset should work in self-service, and what emergency access must look like. The scope lists deliverables, assumptions about your midPoint version and environments, and the client responsibilities that affect the timeline. Nothing is configured until this scope is signed off, and the quote follows from it. Done when both parties have approved the document.

  2. Confirm the midPoint baseline

    DeployOpen reviews your current midPoint release, Java runtime, repository and deployment model, and the existing authentication configuration. The team confirms that the TOTP authentication module is available in your release, since it arrives with midPoint 4.11, and records any upgrade needed first. The output is a short baseline note listing the version, the current login sequences and any custom GUI or flexible authentication settings that the change will touch. Done when your team has confirmed the baseline in writing.

  3. Design the authentication sequence

    The team designs how the TOTP module fits into midPoint's flexible authentication, including which modules run first, how the sequence behaves for the GUI and REST access paths, and which accounts are exempt or handled differently. Design choices are documented with their trade-offs, such as the effect on service accounts and automation. Your security team reviews the design before any change is made. Done when the sequence design is approved and the exceptions are listed with an owner.

  4. Configure in your environment

    Engineers apply the sequence and enrollment settings to a non-production midPoint in your infrastructure, keeping configuration as code where your team already uses it. Self-service enrollment and reset pages are configured to match the design, and emergency access is set up as a separate, tightly controlled path. Changes are tracked in your version control so they can be reviewed and reverted. Done when the non-production instance reproduces the approved design end to end.

  5. Test with pilot accounts

    A small set of pilot accounts, covering regular users, an administrator and a user who has lost a device, goes through enrollment, login, failed attempts, reset and the emergency path. Tests also confirm that the TOTP requirement does not break the integrations and automation that use midPoint. Each result is logged against the scope, and defects are fixed and retested. Done when every test case in the agreed plan passes and the pilot group has signed off.

  6. Roll out and verify production

    The approved change is applied to production during a window your team agrees, with a rollback path documented beforehand. DeployOpen checks login behavior, audit records of authentication events and the emergency access path on the live system with your operators present. Any issues found are handled under the agreed change process. Done when production matches the tested configuration and the verification checklist is signed by your team.

  7. Hand over documentation for security teams

    DeployOpen delivers documentation covering the authentication sequence, enrollment and reset procedures, the emergency access process, exceptions with their owners, test evidence and the configuration location. Your security and operations teams receive what they need to review the control and to answer audit or assessment questions. Documentation supports these reviews but does not replace an independent assessment. Done when the documents are accepted by your named reviewers.

  8. Decide on ongoing support

    After handover, you choose whether your own team runs the control alone or whether a retainer covers upgrades, retesting after midPoint changes and support for user reset requests. Retainer scope, response expectations and any recurring cost are set in writing, and you should ask for them as separate line items in the quote. Done when the support arrangement is recorded and the next review date is agreed.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.