Orthanc built-in HTTP authentication and its limits

Orthanc's built-in HTTP authentication checks a username and password against RegisteredUsers, but every authenticated user gets full read-write access. Teams that need roles, read-only users or LDAP must confirm which option their Orthanc version supports before they expose the server.

On this page

Orthanc built-in HTTP authentication: what RegisteredUsers covers

Built-in HTTP authentication in Orthanc is a username and password check against the users listed in RegisteredUsers, with no separation of access by study or by role. Consider a team that must put an Orthanc archive on a hospital network or the Internet and needs a login before anyone reaches the REST API or the web viewers. For a small archive on a controlled intranet, where a handful of named staff are the only people who need access, this check can be enough, provided the team accepts that every account has the same powers. Look at other options when several groups share the archive, when some people should only view images, or when the server can be reached from outside the hospital network. The sections below cover those cases.

The Orthanc security FAQ sets the order of operations for remote access. Orthanc accepts HTTP connections only from localhost by default, so a fresh install is reachable only from the machine it runs on. When RemoteAccessAllowed is enabled, the FAQ says AuthenticationEnabled should be true and that users must be defined in RegisteredUsers. Remote access without both settings is the first configuration to rule out. Check the running configuration on each server, not only the file you edited, because a container or service manager may load a different file. Then confirm with your own tests that an unauthenticated request from another host is refused.

Once a user logs in, RegisteredUsers gives that user full read-write access to the REST API. The account can upload, modify and delete studies and call every other route the server exposes, so the account list is effectively the list of administrators. Basic authentication also sends the username and password with each request, so HTTPS must sit in front of any archive that people reach over a network. The security FAQ recommends HTTPS and a reverse proxy for Internet exposure. If your requirements include read-only users, per-study restrictions or directory-based logins, plan for the advanced authorization plugin or an external identity service before go-live. Treat the built-in list as a starting point for small, controlled deployments.

How a request passes built-in authentication

The diagram starts with a user's browser or script sending an HTTP or HTTPS request. That request either reaches Orthanc directly or passes through an optional reverse proxy at the network edge. Inside the Orthanc process, the authentication check compares the supplied HTTP Basic credentials with the entries in RegisteredUsers. A matching user then reaches the REST API or Orthanc Explorer 2, and both give that user the same full access. The dotted path shows where an external authorization service would sit, deciding each request before Orthanc serves it. Confirm which boundary terminates TLS and which route can reach Orthanc.

Request path through built-in authentication, with the optional external authorization service shown dotted.

Which Orthanc HTTP authentication option fits your access model

This table compares four ways to restrict access to an Orthanc server and shows what each one controls, what it cannot control, and the work it adds. Read each row against the access you need: sign-in alone, roles and read-only use, or study-level rules. The main takeaway is that none of the RegisteredUsers options separates roles or studies, so any such requirement points to the authorization plugin or a custom decision service.

OptionWhat it controlsWhat it cannot controlWork it adds
RegisteredUsers in OrthancWho can sign in to the REST API and viewers using HTTP Basic credentials.Roles, read-only users or per-study rules. Every listed user gets full read-write access.Edit the configuration file for each user change. Confirm how credentials are stored and rotated for your setup.
RegisteredUsers behind an HTTPS reverse proxyEncrypts sign-in traffic and lets the proxy restrict which paths are exposed to the Internet.Still no roles or per-study rules inside Orthanc. The proxy sees URLs and methods only.TLS certificates, proxy configuration, and testing that viewers still load through the proxy.
Advanced authorization plugin with an external serviceEach REST request's token goes to your web service, which allows the request or returns HTTP 403.Nothing in Orthanc itself. Your service must model roles, read-only use and study rules.Build, host and test the decision service, plus token issuance. The reference project uses Keycloak and Orthanc Explorer 2.
LDAPWould move user sign-in to a directory, if the Orthanc build and plugin list support it.Confirm whether directory groups can map to roles, read-only use or study rules.Confirm LDAP support against the Orthanc version and plugin list in the Orthanc Book before promising it.

Why built-in HTTP authentication gives every user full read-write access

RegisteredUsers only proves that a login is valid. It does not record what that login may do. With AuthenticationEnabled set to true and accounts listed under RegisteredUsers, each valid account can call the same REST routes as every other account. Nothing in that setting narrows a user to viewing, to certain studies or to certain actions. For a clinic or research archive, the account list is effectively the permission list, so review it with that reach in mind before granting access. Confirm with the Orthanc Book and your own tests whether your version offers any finer control before you rely on one.

In practice, a user who can log in can also delete, modify or export studies. Illustrative example: a research coordinator who signs in only to check upload counts can, through the same REST routes, remove a study that a colleague still needs or export a full set of patient images to a workstation outside the approved network. The login itself does not distinguish a viewer from an administrator. Your access review should therefore list every account that can reach the REST API, including service accounts used by scripts, viewers and integrations, and record what each one needs to do.

The Orthanc security FAQ warns that the /tools/execute-script route can let a malicious user run any system command, and that the export route can overwrite files, so both should stay disabled. Orthanc Book security FAQ That warning matters more under full read-write access. If every account can call every route, a single guessed or phished password can reach a route that acts on the server itself. Before go-live, confirm in your configuration that both routes are disabled, then test with an ordinary account to check that the server refuses them. Repeat that test after upgrades and configuration changes.

Setting up RegisteredUsers and checking that it took effect

This sequence turns on HTTP authentication for Orthanc and keeps remote access closed until authentication is proven. Each step ends with a check you can repeat, and the sequence ends with a written record of the Orthanc version and each result. Run the whole sequence on a staging instance before any change reaches production.

  1. Decide the user list and passwords

    The platform lead lists every account that needs REST or viewer access, one entry per person or service, and records who approved each one. Keep the list short, because every account in RegisteredUsers gets full read-write access. Confirm with your security team how passwords will be created, stored in the configuration file, rotated, and who can read that file. Done when the list and the password process are written down and approved.

  2. Confirm startup behavior for your version

    Before you edit the configuration, read the Orthanc NEWS file for the release you plan to run. Orthanc 1.13.0, released on 2026-08-15, rewrote storage-area access, so confirm in its notes whether anything about startup or authentication affects your deployment. Install the same release on a staging instance and confirm that it starts and reports the expected version through the /system endpoint. Done when the notes are reviewed and staging starts cleanly.

  3. Set AuthenticationEnabled and RegisteredUsers

    On the staging instance, edit the configuration file, usually Orthanc.json, and set AuthenticationEnabled to true. Add each approved account under RegisteredUsers, then restart Orthanc with the new file. Leave RemoteAccessAllowed at its default so the server still accepts connections only from localhost. Check: from the server itself, a REST call to /system without credentials must be refused, and the same call with a listed user's credentials must succeed. If the unauthenticated call gets through, stop and fix the file before going further.

  4. Enable remote access after authentication passes

    Only after the previous check passes, set RemoteAccessAllowed to true and restart Orthanc on staging. From a workstation on the network that should reach it, repeat the unauthenticated /system call and expect refusal, then the authenticated call and expect success. Also try a valid network path with credentials for an account that is not in RegisteredUsers and expect refusal. If an unauthenticated request from another host succeeds, set RemoteAccessAllowed back to false and review the file.

  5. Place HTTPS in front of Orthanc

    Put TLS in front of the REST API, either with the built-in SslEnabled certificates for an intranet or with a reverse proxy such as nginx or Apache, following the HTTPS topic in this series. Restrict the Orthanc port so that only the proxy can reach it, which stops clients from bypassing TLS. Check: an https request with credentials through the proxy succeeds, a plain http request to the Orthanc port from outside the host is refused, and a client the team uses validates the certificate chain. Record the proxy and certificate settings next to the configuration file.

  6. Promote the tested configuration to production

    Once the checks in the previous steps pass on staging, apply the same configuration file, image and operating system to production during a planned change window. Repeat the unauthenticated and authenticated calls, the remote-access check and the HTTPS check against production. Compare each result with the staging record. Use only the production endpoints your reviewers approved, and stop the change if any result differs from staging.

  7. Record the evidence and remaining limits

    Write a test record with the Orthanc version used, the date of each run, each check and its result, and the list of accounts without passwords. Record that every account in RegisteredUsers has full read-write access, so this setup does not separate reviewers from administrators. Ask your compliance team which evidence they need, and decide with the data owners whether roles, read-only users or LDAP are needed before the archive holds patient images. Keep the record with the configuration for the next upgrade.

Roles, read-only users and LDAP beyond the built-in option

RegisteredUsers gives every authenticated account the same full read-write access, so per-user permissions need a layer outside the built-in option. The official route is the advanced authorization plugin, which forwards each REST request's token to an external web service. That service decides whether the request may proceed and returns HTTP 403 when access is denied, so the policy lives in code your team can review and test. The authorization plugin documentation describes this flow.

  • Policy ownership: roles, study scope and audit rules sit in your service, so changes go through your normal review process.
  • Token validation: the service must verify the token signature, issuer and expiry before it answers, so confirm how your identity provider signs tokens.
  • Reference pattern: the orthanc-auth-service reference project uses Keycloak-issued user tokens with Orthanc Explorer 2, which gives you a working starting point to adapt.
  • Per-request dependency: every REST call waits on your service, so its availability and latency become part of archive performance.
  • Viewer coverage: confirm that each viewer you run sends the token on every request it makes, and that denied calls return 403 on every route, including those the viewers use.

Check that your service returns 403 for each denied route before go-live, and keep the test results for your access review.

Security settings that must hold when Orthanc is reachable remotely

Built-in authentication controls who can call the REST API, but it does not cover transport, DICOM traffic, script routes or logging by itself. The six checks below are the settings to verify before Orthanc is reachable from outside the local network, each with the team that owns it.

Remote access defaults

Orthanc accepts HTTP connections only from localhost by default. Before you enable RemoteAccessAllowed, confirm that AuthenticationEnabled is true and that every account is defined under RegisteredUsers. Check the configuration the running instance actually loaded, and confirm that no test setting left remote access open. Platform engineering owns this setting and reviews it at each change.

Orthanc security FAQ

HTTPS at the reverse proxy

Built-in authentication protects who may call the REST API, but it does not encrypt the traffic that carries the credentials. Terminate TLS at a reverse proxy in front of Orthanc, and confirm that Orthanc itself is reachable only from the proxy. Certificate issuance, renewal and cipher policy belong to the network or security team, and the Orthanc team should verify that viewers and scripts connect through the HTTPS address only.

Script and export routes disabled

The /tools/execute-script route can let a malicious user run any system command, and the export route can overwrite files, so both should stay disabled on a remotely reachable server. Block these paths at the proxy as well as in Orthanc, then test with an authenticated request to confirm they are refused. The Orthanc administrator owns the configuration, and the security team should retest after each upgrade.

Credentials in the configuration file

RegisteredUsers defines accounts inside the Orthanc configuration file, so file permissions and version control access matter as much as password strength. Restrict read access to the service account, keep the file out of shared repositories, and confirm with your version's documentation how passwords are stored. The Orthanc administrator owns rotation schedules for every account, and the security team approves each change.

DICOM ports outside HTTP authentication

RegisteredUsers governs the REST API and viewers only, so any device that reaches the DICOM port may still store or query studies. Limit the DICOM port to known modality addresses and AE titles, and enable DICOM TLS for exchanges between sites, which Orthanc supports starting with version 1.9.0. The imaging IT team owns the modality list, and each new device needs an approved entry before network access opens.

Login and access event logs

Confirm what your Orthanc version writes to its logs for failed logins, successful sign-ins and REST requests before anyone relies on them. Do not assume built-in authentication produces a per-user audit trail until you have confirmed that the logs record the account name, then forward them to your central platform and test that a deliberate failed login produces an entry. Security operations owns this check, and the compliance team sets the retention period.

What the 1.13 startup check means for built-in HTTP authentication

Orthanc 1.13.0 was released on 2026-08-15, and any team upgrading to it should read the release notes in the Orthanc NEWS file before changing production. The NEWS file is the source for the exact behavior of the authentication-related startup check. This page does not reproduce the check's conditions, so confirm three things before you upgrade: what triggers the check, what it blocks from starting or running, and how to fix a configuration it rejects. Do not assume that a configuration which started on 1.12.x will start unchanged on 1.13.0. Pay particular attention to the settings that govern built-in HTTP authentication, including AuthenticationEnabled, RegisteredUsers and RemoteAccessAllowed, because those are the settings that determine whether remote HTTP access is permitted at all.

Test the upgrade on a copy of the production configuration before touching the live server. Build a non-production instance with the same orthanc.json settings, the same user list and the same reverse proxy or TLS arrangement in front of it, then start it on 1.13.0. Record the version you ran, the exact startup message if the process refuses to start, whether the process exits or keeps running, and which change made it start cleanly. Then run the same login checks you use in production, including a request from a user who should be denied. If the check rejects a configuration, make the smallest change that satisfies the NEWS entry, and retest from the beginning rather than assuming the first fix is complete.

Record the result in the change record so that the next auditor or on-call engineer can see what was decided and why. Include the NEWS entry you relied on, the test configuration with secrets removed, the startup output, the fix applied, the retest results and the approver. Ask the team that owns authentication to review any configuration change, because a fix that makes the check pass should not also widen who can reach the server. The 1.13.0 release also rewrote storage-area access, so include a retest of storage-area access in the same test run and record it alongside the login results.

Limits of built-in HTTP authentication to confirm in your environment

Built-in HTTP authentication checks who can log in, but it gives each authenticated account broad access and keeps its configuration in hand-edited files. The cards below list the gaps to test before you rely on it for patient images, each with a question to answer for your own Orthanc version and setup.

No role separation in RegisteredUsers

Entries in RegisteredUsers are username and password pairs, and the built-in model gives each entry the same access level. Administrators, reviewers and read-only staff are not separated by a role field in that block. Ask your vendor or check your version's configuration reference for any role, group or read-only option. Then test it: create a standard account and attempt a study deletion through the REST API to see what the server allows.

No per-study access control

Built-in authentication decides who can log in, not which studies a logged-in account can open. Once authenticated, an account can reach every study in the archive, including studies it has no clinical reason to see. Confirm whether your version can filter results by study, label or patient, or whether that needs a separate authorization layer. Test it with a restricted account by querying and retrieving a study it should not see, through both the REST API and your viewer.

Authorization plugin page

Full read-write access for every account

Every authenticated account receives full read-write access, so any login can upload, modify, delete or export studies. Administrative routes are reachable by the same login unless your version restricts them. The security documentation warns that /tools/execute-script can run system commands and that the export route can overwrite files, so both should stay disabled. Confirm which routes a standard account can call in your version, and test that a standard login is refused on the script and export routes.

Manual password and user management

Accounts and passwords live in the Orthanc configuration file, so every new user, password change or removal is a hand edit on the server. Confirm whether your version records who changed an account and when, and how your team reviews those edits before they go live. Check whether the configuration reloads without a restart, and test that a removed account is refused on its next request. Keep a written procedure for offboarding, since the built-in model does not replace your identity lifecycle process.

LDAP and directory support to confirm

Whether a directory login path is available for your Orthanc version, and through which component, must be confirmed before you plan around it. Ask the vendor or Orthanc Team whether LDAP is supported directly, through a plugin or through a custom authorization service, and which version each option targets. Then ask how directory group membership maps to Orthanc access. Test it with a directory user removed from the relevant group to confirm access ends at the next login.

HTTPS and a proxy for remote access

By default Orthanc only accepts HTTP connections from localhost. When RemoteAccessAllowed is enabled, the documentation says AuthenticationEnabled should be true with users in RegisteredUsers, and it recommends HTTPS and a reverse proxy for any Internet exposure. Confirm whether built-in TLS or a proxy fits your network, and who holds the certificates. Test from outside your network that plain HTTP is refused and that credentials are never sent unencrypted.

Security FAQ

How long and how much work does a built-in authentication setup take?

Can a small team configure RegisteredUsers on its own?

Often yes, for a small archive with one site and a team that already runs Orthanc. The core work is a configuration change: enabling AuthenticationEnabled and defining accounts under RegisteredUsers, then testing each viewer that connects. The harder part is the access model. Every RegisteredUsers account has full read-write access, so decide who may change or delete images before you edit the file. Teams that have no one to own the configuration, or that must answer audit questions about it, often bring in outside help to review the setup and document it. Check first whether your staff can run the testing, because that is where most surprises appear. Confirm the current behavior in the Orthanc Book security FAQ for your version.

What drives the effort of an Orthanc authentication setup?

The main drivers are the number of users, whether people connect from outside your local network, whether HTTPS is handled by Orthanc or a reverse proxy, and how much upgrade testing you need. Each one changes the work:

  • Users and roles: more accounts add password handling, and any read-only or role requirement adds design and test cases.
  • Remote access: setting RemoteAccessAllowed should be paired with AuthenticationEnabled set to true, and internet exposure adds HTTPS, proxy and firewall work.
  • LDAP or external authorization: directory login or per-study rules move the effort from configuration into integration.
  • Upgrade testing: each Orthanc release should be checked against your authentication settings before it reaches production.

Ask for a quote that names which of these apply to you. A single viewer on a private network needs far less than a multi-site archive with remote users.

What does our team need to provide before a quote?

DeployOpen needs enough detail to write a fixed scope, so plan to supply the environment and name the people who own each decision. The inputs usually fall into three groups:

  • Environment details: the Orthanc version, operating system or Docker setup, database plugin, and where the server runs.
  • Owners: a named person for certificates, a network owner for firewall and proxy changes, and an access owner who approves the user list.
  • Test data: a non-production copy or sample studies, plus a list of the viewers, modalities and scripts that must keep working after the change.

The more complete this list is, the more precisely the written scope can describe what is included and what your team still has to do.

What should a written quote for this work include?

DeployOpen does not publish prices. A quote follows from a written scope, and the scope, deliverables and timeline are agreed in writing before work starts. Ask that the quote states:

  • The access model covered, including RegisteredUsers accounts, any role or read-only requirement, and any LDAP work.
  • The network and HTTPS work, including who owns certificates and reverse proxy changes.
  • The testing performed, which viewers, modalities and upgrade paths are checked, and what evidence is delivered.
  • What is one-time, such as initial configuration and documentation, and what recurs, such as support or upgrades.
  • Exclusions and client responsibilities. If you also want the vendor's option, ask Orthanc Team SRL for a quote on its deployment and configuration services, which include pre-paid dedicated support hours valid for 12 months.
Can we add roles or LDAP after the basic setup is live?

Usually yes, but plan the path before users and viewers depend on the basic setup. The built-in model has no roles, so every RegisteredUsers account can read and change all studies. Separating access later requires a design choice. The advanced authorization plugin forwards each REST request's token to an external web service, which returns HTTP 403 when access is denied. LDAP requirements usually need an integration step on top of Orthanc, and the exact approach depends on your Orthanc version and directory. Confirm the options with the vendor and test them in your own environment. Changing the authorization model after go-live means retesting every client that depends on it, so decide early whether roles are needed at all.

What usually goes wrong when Orthanc authentication is enabled?

Most problems come from settings that do not match across the stack. Common ones include a viewer that cannot send credentials, a reverse proxy that drops the authorization header, remote access turned on without authentication, and a test that checked only the web interface. HTTP authentication also does not govern DICOM connections, so the DICOM side must be protected with the allowed-modality controls and network rules. Before production, confirm what the startup checks report in your version, test with a copy of the configuration, and keep a rollback file ready. Write the expected behavior for each client so that a failed login can be traced to a specific setting.

Is this a one-time job or does it need ongoing support?

The initial configuration and testing are one-time work. Password changes, certificate renewals, proxy updates and Orthanc upgrades recur for as long as the archive runs. DeployOpen offers ongoing support, upgrades and continuous testing as retainers, and most engagements are fixed-scope. Ask any provider what is included in ongoing support, how upgrades are tested before rollout, and who responds when something breaks. Orthanc Team SRL's pre-paid support hours are valid for 12 months and quoted on request, so compare that term with the retainer terms in your written scope before you commit to either.

How DeployOpen scopes and delivers Orthanc access control

DeployOpen starts by confirming which users need which access to your Orthanc archive, because the built-in RegisteredUsers list grants every account full read-write access. We then plan the options for read-only users, roles or an external identity source inside your infrastructure, and test the result against your viewers and REST clients before handover.

How we scope

  • Written scope listing every Orthanc user group, its needed actions and the viewers and REST clients that connect.
  • Agreed in writing before work starts, with deliverables and timelines fixed for the authentication and access work.
  • A decision record on whether RegisteredUsers is enough, or whether roles, read-only accounts or an external identity source are needed.

How we build

  • Configure HTTP authentication with AuthenticationEnabled and RegisteredUsers, with HTTPS in front of any server reachable beyond localhost.
  • Build the chosen extension, such as the advanced authorization plugin, with its decision service returning HTTP 403 on denial.
  • Test that the Orthanc Explorer 2 interface, DICOMweb clients and scripts each receive only the access their account allows.

How we hand over

  • Hand over the user list, permission matrix and configuration files, with each setting documented for your operations team.
  • Provide the test evidence and a retest record, so your security and compliance team can review the access model.
  • Confirm the Orthanc version and plugin versions you run, and record the upgrade steps that apply to the access setup.

How we support

  • Offer ongoing support, upgrades and continuous testing as a retainer, covering access changes after go-live.
  • Plan a re-check of the access model when Orthanc releases change storage-area handling, such as 1.13.0.
  • Scope any later change to roles, LDAP or a new authorization service as a separate written engagement.

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.