Skip to main content
News & Insights

The Update for
Digital Health.

Technical depth, regulatory updates, and insights into the future of health identities.

8 min read

BSI TR-03161 in IAM: How azuma doa Secures Authentication, Sessions and Tokens

azuma Team
Core Team

Two factors are no longer enough if they are checked one after the other. Under the current interpretation guidance on BSI TR-03161, two-factor authentication only counts if the factors are interlocked and, from the user's point of view, checked at the same time. For many DiGA manufacturers, this affects exactly the part they rarely build themselves: identity and access management (IAM).

This article shows how azuma doa implements the TR-03161 requirements for authentication, sessions and tokens, what changes with the new interpretation, and which parts remain with you as the manufacturer.

What does BSI TR-03161 require of IAM?​

BSI TR-03161 is the audit standard for the security of healthcare applications; for DiGAs, proof of compliance is mandatory. For an overview of its structure and certification, see our article on the TR-03161 requirements for DiGAs.

For IAM, these areas matter most:

  • O.Auth – authentication, two-factor procedures, ending sessions
  • O.Sess – session and token management
  • O.Pass – handling passwords
  • O.Cryp – cryptography and key management
  • O.Data – data minimisation and deletion
  • O.Arch / O.Ntwk – architecture and network

The mappings in this article are our assessment, not a statement by a testing body.

What changes with the new interpretation?​

Interlocked two-factor authentication with azuma doa: biometrics and a hardware-bound key on the device interlock like two rings and produce a single signed request, while factors checked separately can each be attacked on their own.

Interlocked two-factor authentication​

With biometrics and passkeys, the biometric factor directly unlocks the hardware-bound key on the device. Possession and biometrics are thus part of a single cryptographic operation and cannot be attacked separately.

With device-bound sign-in, the app sends credentials and device proof in a single request signed with the device key, not in separate steps.

Device protection as a prerequisite​

The azuma reference implementations for iOS only create the binding key on devices with an active passcode. Without device protection there is no device binding; it does not stop at a warning. You don't have to build this from scratch for your DiGA app: azuma doa provides the building blocks, and you integrate them into your app with a manageable amount of configuration and development. That makes device protection simple and secure to implement.

Token invalidation when a session ends​

Logout and global logout revoke access and refresh tokens server-side in the authorisation server, not just in the app. Global logout ends all of a user's sessions and tokens. Automated tests safeguard this behaviour.

How azuma doa implements TR-03161 technically​

Device-bound sign-in with hardware attestation​

Every request from a mobile app is signed with a device-bound key and contains a one-time challenge. Stolen credentials alone are therefore not enough. Optionally, the server verifies the authenticity of the app and the device via Apple App Attest and Google Play Integrity or Key Attestation, configurable per tenant.

Rotating refresh tokens with theft detection​

Every renewal creates a new refresh token. If a token that has already been used is presented again, azuma doa automatically revokes the entire token family. A stolen token thus becomes worthless as soon as it is misused once.

Token signing with keys in Azure Key Vault​

Access tokens are signed with ECDSA using keys from Azure Key Vault, configurable per tenant. The process is fail-closed: a tenant that requires Key Vault signing never silently receives a token signed any other way. Rotated or disabled key versions lose their validity.

Data-minimising tokens for the ePA and GesundheitsID​

For integrations such as the ePA (electronic patient record), azuma doa issues separate, restricted tokens: short-lived, with their own audience and not renewable. Derived tokens never live longer than their originating token and are revoked along with it.

Strong sign-in methods for healthcare​

azuma doa integrates the GesundheitsID and HIN natively; both count as strong sign-in methods. On top of that come TOTP, an email code as second factor (enforceable per tenant), passkeys and biometrics. Security-relevant actions require the highest available authentication level. How the GesundheitsID is connected technically is described in our article on GesundheitsID integration in DiGAs.

Password protection as specified by the BSI​

  • Hashing: Argon2, parameterised according to the BSI recommendation; stored credentials additionally protected with authenticated encryption
  • Password rules: per tenant, with blocklists of common passwords and a check against the username
  • Account enumeration: protection including equalised response times
  • No open self-registration: accounts are only created through controlled processes

Tenant separation down to the identity layer​

Each tenant has its own separate area for identities, sessions and tokens, not just a column in a shared table. Dedicated end-to-end tests verify the isolation between tenants.

Operations, logging and supply chain​

Security doesn't end at sign-in. These points contribute to O.Arch, O.Ntwk, O.Source and O.TrdP:

  • No secrets in logs: All logging goes through structured log methods; a direct log call breaks the build. Health insurance numbers (KVNR) only appear masked, and error responses contain no internal details.
  • Zero-trust gateway: Every endpoint requires authentication by default, the admin interfaces of the identity services are not publicly reachable, and admin access can be restricted to IP addresses per tenant.
  • Right to erasure: Deletion removes sessions, tokens, consents, identity and the related audit entries; connected azuma products delete their copies automatically. Every step is idempotent.
  • Audit log: Actions are logged with tenant, user or client, device and correlation ID. Deletion records deliberately do not end up in the long-term audit.
  • Supply chain: builds from source, licence checks, Renovate, Trivy scans (critical vulnerabilities with an available fix stop the release), Sonar with warnings as errors, code-owner review, containers without root privileges.
  • API contract: Every change is automatically checked against a reference and compared against TR-03161-3 before merging.

At the time of writing, azuma doa comprises 1,706 unit and integration tests and around 800 end-to-end tests, 354 of them for device binding. Security findings from earlier audits run as permanent regression tests.

What remains with you as a DiGA manufacturer​

azuma doa covers authentication, sessions and tokens in the backend. But an IAM alone doesn't make your DiGA TR-compliant. What remains with you includes:

  1. App side: configuring device binding and device protection with the azuma doa building blocks, integrating them into your app, and implementing secure storage. Our reference implementations serve as a template.
  2. Your own backends: business APIs must validate tokens correctly and end their own sessions cleanly.
  3. Protection requirements and documentation: protection requirements analysis, purpose limitation and evidence for the testing body.
  4. Operations: ISO 27001, monitoring and penetration tests.
  5. Code review: If you want to see where your own codebase stands against TR-03161, you can check it automatically with azuma nori.

Frequently asked questions​

What is interlocked two-factor authentication?​

2FA in which both factors are checked in a single operation rather than one after the other. With azuma doa, for example, biometrics directly unlock the hardware-bound device key.

Is a logout in the app enough for TR-03161?​

In our assessment, no. That's why azuma doa revokes access and refresh tokens server-side in the authorisation server, and for all of a user's sessions on global logout.

Does azuma doa make my DiGA TR-03161-compliant?​

No, not on its own. azuma doa covers the IAM requirements for authentication, sessions and tokens; the app, your own backends, documentation and operations remain with the manufacturer.

Does azuma doa support the GesundheitsID?​

Yes. azuma doa integrates the GesundheitsID and HIN natively; both count as strong sign-in methods.

What happens if a refresh token is stolen?​

As soon as a refresh token that has already been used is presented again, azuma doa revokes the entire token family. The stolen token thus becomes worthless.


Building a DiGA and don't want to implement authentication to TR-03161 yourself? Talk to our team and we'll set up a developer tenant for azuma doa. How device-bound sign-in works in detail is covered in the technical documentation on device binding.

As of: 30 November 2026, BSI TR-03161 Part 1 version 3.0, Parts 2 and 3 version 2.0, interpretation guidance as of 11/2026. The BSI's current publications are authoritative.