Medplum authentication and API security

Specific sign-in and machine authentication setups for Medplum beyond basic SSO: MFA methods, corporate identity providers, token exchange, signed JWT and mTLS clients, and token lifetimes.

Medplum MFA with authenticator apps and email codes

Turning on multi-factor authentication in Medplum: TOTP versus email codes, enabling email MFA per project, enrollment and reset, why MFA applies only to password logins and how SSO users get MFA from their provider.

Microsoft Entra ID SSO for Medplum

Signing providers and patients in to Medplum with Microsoft Entra ID: app registration, OIDC settings, per-client versus domain-level providers, user matching by email or subject and conditional access on the Entra side.

Medplum On-Behalf-Of for server-side applications

Keeping author tracking and access policies when your own backend is the only system calling Medplum: the X-Medplum-On-Behalf-Of header, ProjectMembership versus profile IDs and the project admin requirement.

Medplum embedded login versus redirect login

Choosing between a sign-in form inside your own app and Medplum's hosted login page: the shared authorization code with PKCE flow, branding control, and the credential exposure trade-off Medplum describes.

Medplum access and refresh token lifetimes

Setting access and refresh token lifetimes in Medplum by application risk: the defaults, per-client overrides, offline access scopes, refresh token storage and the effect on idle sessions and logout.

Using Medplum as an OAuth2 identity provider for your app

Authenticating patients and practitioners in your own healthcare app with Medplum's OAuth2 authorization code flow: creating a ClientApplication, exact redirect URIs, assigning an access policy to the client and fetching tokens.

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.