OpenSearch Dashboards SAML single sign-on

A planning and build guide for federating OpenSearch Dashboards with a SAML 2.0 identity provider, covering the web browser SSO profile, role mapping, and offering SAML beside basic login.

On this page

How OpenSearch Dashboards SAML single sign-on works

Dashboards users need to sign in with corporate identity, while administrators keep a fallback for break-glass access and for service accounts that cannot use a browser. The OpenSearch Security plugin implements the SAML 2.0 web browser SSO profile, and its primary use is single sign-on for OpenSearch Dashboards. In this model, Dashboards acts as the service provider, and an external identity provider (IdP) such as Microsoft Entra ID or AD FS authenticates the user and returns a signed SAML assertion. The browser carries that exchange, so the user never types a password into OpenSearch itself.

The IdP role matters for planning. Your identity team owns the user store, multi-factor policy, session lifetime and the group claims that OpenSearch reads to assign roles. Your OpenSearch team owns the service provider configuration: the entity IDs, assertion consumer URLs, signing and encryption certificates, and the attribute names the Security plugin expects. Confirm with your IdP administrators which certificate signs assertions and how it rotates before you configure anything, because a mismatch there blocks every sign-in. The exact settings and their defaults are in the OpenSearch SAML documentation, which you should read against the version you run.

Keeping a fallback is a configuration decision, not an afterthought. With opensearch_security.auth.multiple_auth_enabled set to true, Dashboards can show basic authentication, OpenID Connect and SAML together on the sign-in page. Basic authentication is always one of the options, so a local account remains available if the IdP is unreachable. Decide before rollout who holds that local account, where its password is stored and how access to it is logged, and test the sign-in page for each method. Document that fallback path in your runbook so that an outage at the IdP does not become an outage of Dashboards.

What you need before configuring SAML

SAML login for Dashboards depends on four things lining up before any configuration file is touched: a known OpenSearch version with the Security plugin, an identity provider your team can administer, a stable public address for Dashboards, and a certificate and metadata exchange in both directions. Work through these cards first so the configuration step is a transcription exercise rather than a debugging session.

OpenSearch version and Security plugin

Record the exact OpenSearch and OpenSearch Dashboards versions, and confirm the Security plugin is enabled on both the cluster and Dashboards. The SAML authentication backend and its Dashboards settings have changed across releases, so the version you deploy determines which settings you copy. Check the current SAML documentation for that version before writing any configuration, and note which maintenance line the version belongs to so patching is planned from the start.

SAML docs

An identity provider you can administer

Decide which SAML 2.0 identity provider will issue assertions, such as Microsoft Entra ID or AD FS for on-premises Active Directory. Confirm that someone on your team can create an enterprise application or relying party trust, set claim rules, and assign users or groups. If the directory is on-premises, confirm whether identities are synced to Entra ID with Microsoft Entra Connect or whether AD FS will federate directly, because that choice changes who owns the login path.

Public Dashboards URL and TLS certificate

Fix the external address users will type, including host name and port, before registering anything with the identity provider. The SAML assertion consumer URL and the Dashboards base URL must match this address exactly, so a later host name change means re-registering the service provider. Issue a certificate for that host name from your own PKI or internal CA, and confirm that the identity provider and user browsers trust the issuing CA.

Metadata and signing certificate exchange

Plan how the two sides exchange trust material. The identity provider publishes its metadata and signing certificate, which Dashboards and the Security plugin must trust to verify assertions. Dashboards supplies its entity ID and assertion consumer endpoint, and you decide whether assertions are signed, encrypted or both. Record who generates each certificate, where it is stored, and when it expires, since an expired signing certificate is a common cause of sudden login failure.

Attribute names and group claims

Before configuring mapping, list the attributes the identity provider will send, such as the user name, email and group membership, and agree on the exact claim names with the identity team. Roles in OpenSearch are mapped from these values, so the group identifiers must be stable and readable by the security team. Note whether group claims carry names or object identifiers, because that choice affects every role mapping you write later.

Confirm settings against the current docs

Before you copy any setting, confirm the exact keys and their expected format for your chosen version in the current SAML documentation. Treat examples in older blog posts or demo files as illustrative only. Ask the identity provider administrator to confirm claim names and certificate formats, and keep a short written record of the versions and endpoints you validated so the configuration can be reviewed later.

Configuring SAML in Dashboards step by step

This sequence takes Dashboards from an identity provider registration to a tested SAML sign-in that sits beside basic login, so a misconfiguration never locks administrators out.

  1. Register Dashboards as a relying party

    The identity provider team creates a SAML application for Dashboards in the IdP (for example Entra ID or ADFS), sets the entity ID and assertion consumer URL to the values your Dashboards hostname will use, and decides which claims or attributes are released, such as user name, email and group membership. Record the exact entity ID and assertion consumer URL, because a single character mismatch later will fail every sign-in. Done means the application exists in the IdP with a documented attribute list and an owner who can change it.

  2. Export and check the IdP metadata

    Download the federation metadata XML from the identity provider and confirm it contains the signing certificate, the single sign-on endpoint and the expected entity ID. Keep the file under version control with the rest of your Dashboards configuration. Done means the metadata file opens as readable XML and the certificate expiry date has been noted for the renewal calendar. Confirm with your IdP administrator how that certificate is rotated, since expiry will stop sign-in.

  3. Add the SAML authentication domain in Security configuration

    Using the Security plugin configuration, add a SAML authentication domain to the authc section of config.yml with the IdP metadata, the entity ID, the subject key and the roles key that match the attributes released in step one. Follow the current SAML backend documentation for the exact keys, because they differ between plugin versions. Done means the configuration validates without errors when applied in a test cluster, and the domain appears in the authentication order you planned.

  4. Set the Dashboards SAML settings

    In opensearch_dashboards.yml, configure the SAML options that the browser flow needs, including the Dashboards public URL and the SAML login path, and confirm they match the entity ID and assertion consumer URL registered in step one. Restart Dashboards after the change. Done means Dashboards starts cleanly and the sign-in page renders without a configuration error in the logs.

  5. Enable multiple authentication on the sign-in page

    Set opensearch_security.auth.multiple_auth_enabled to true in opensearch_dashboards.yml so Dashboards offers SAML next to basic authentication on the sign-in page. Basic authentication always remains one of the options, which is the fallback for administrators if the IdP is unavailable. Done means the sign-in page shows both the SAML option and the basic login form.

  6. Test SAML sign-in and the basic login fallback

    Sign in through SAML with a pilot user, then confirm the user lands in the expected tenant with the roles mapped from the IdP attributes. Sign out, then sign in with a local administrator account using basic authentication to prove the fallback still works. Test a user without the mapped group and confirm access is denied. Done means all three tests pass and the results are recorded in your change ticket. Confirm the exact role mapping behavior against the current Security plugin documentation before rollout.

How the SAML login flow moves between browser, Dashboards and the identity provider

A SAML sign-in to OpenSearch Dashboards is a series of browser redirects, and the trust boundary sits in the signed message the identity provider (IdP) sends back. The user opens Dashboards and is sent to the IdP's sign-in endpoint with a SAML authentication request. After the user authenticates at the IdP, the browser carries a signed SAML assertion back to the Assertion Consumer Service (ACS) endpoint on the Dashboards side, which the Security plugin exposes. The Security plugin then checks the signature, the audience, the validity window and the issuer, maps the attributes to a user and roles, and creates the Dashboards session. Dashboards itself never sees the user's password, so the IdP and the Security plugin are the two parties that must agree on who is trusted.

The trust boundary is the signing key and the metadata that describes each side. The Security plugin must hold the IdP's signing certificate so it can verify assertions, and the IdP must hold the service provider entity ID and ACS URL that Dashboards advertises. These values must match exactly, including scheme, host, port and path, because a mismatch in the entity ID, the audience restriction or the ACS URL causes the login to fail at the IdP or at the Security plugin. Confirm which certificate is the active signing certificate, how it will be rotated, and who in your organization owns that change. Also confirm whether the IdP signs the full response, the assertion or both, since the Security plugin configuration and the IdP's settings must agree.

Before you configure anything, write down a table of every endpoint and certificate on both sides and have the IdP administrator review it. Include the Dashboards external URL, the ACS path, the entity ID, the IdP metadata URL or certificate, the signing algorithm and the clock tolerance between servers. Time skew between Dashboards hosts and the IdP can make valid assertions look expired, so confirm that all servers synchronize their clocks. Check the exact SAML settings and option names in the OpenSearch SAML documentation against the Security plugin version you run, since names and defaults can change between releases. Treat this matrix as the acceptance checklist for the login test.

Where each component sits in the SAML sign-in path

The sign-in starts in the browser, which requests a Dashboards page and is redirected to the SAML identity provider (for example Entra ID or ADFS) because the Security plugin in Dashboards is configured for SAML. The identity provider authenticates the user and returns a signed SAML assertion through the browser to Dashboards, which hands it to the Security plugin. The plugin maps assertion attributes to backend roles and checks them against the cluster's role mappings before the cluster grants access. Check which network segment each hop crosses, since the identity provider sits outside the client network trust boundary.

Browser redirects between Dashboards and the identity provider, with the trust boundary marked.

Mapping SAML attributes and groups to OpenSearch roles

This table traces one login from the identity provider's NameID and groups claim through the backend roles OpenSearch derives, to the internal role mappings that grant permissions. Read it top to bottom when you design the mapping, and confirm each attribute name against your own IdP's SAML response before you write any configuration.

StageWhat it carriesWhere it is setWhat to confirm
NameID or subjectThe user identifier the IdP asserts, usually an email address or account nameThe SAML authentication domain settings in the Security plugin, which determine which value becomes the OpenSearch usernameWhich claim the IdP sends as NameID and whether it is stable across renames
Groups or roles claimGroup or role names the user belongs to, sent as a multi-value attribute in the assertionThe attribute name for roles in the SAML authentication domain configuration, matched exactly to the IdP outputThe exact attribute name and whether the IdP sends group IDs or display names
Backend rolesStrings OpenSearch attaches to the user from the roles claim, used as the link to internal rolesDerived from the roles attribute at login; not created as separate objectsWhether group names are long, mixed case or contain spaces that need consistent handling
Internal role mappingTies backend roles or user names to a Security plugin role that grants index and cluster permissionsRole mappings in the Security plugin, applied with the security configuration toolsThat each IdP group maps to a role with the least permissions the team needs
Role permissionsIndex, document and field access that the mapped role allowsRole definitions in the Security plugin, including any document-level or field-level rulesThat mapped roles do not grant admin rights by accident through a broad group
Unmapped usersUsers who authenticate but match no role mapping and so receive no useful accessBehavior set by the default and fallback role configurationWhether unmapped users land in a restricted role or are denied at the Dashboards level

Hardening SAML sign-in for Dashboards

Federating Dashboards with SAML moves the sign-in decision to your identity provider, so the risk shifts to the trust settings around it. The cards below cover the controls that decide who gets in, how long a session lasts, what a stolen login can reach, and whether sign-in events can be reconstructed later.

Signed assertions and certificate rotation

Dashboards trusts the identity provider's signing certificate to validate every SAML response, so that certificate is the trust anchor for the whole sign-in path. Confirm that the IdP signs assertions, not only the response envelope, and that Dashboards rejects unsigned or incorrectly signed messages. Record the certificate's expiry date and the owner who renews it, because a lapsed certificate either blocks every user or, if the configuration is loose, invites substitution. Test a rotation in a non-production cluster before the production date arrives.

SAML docs

Fixed entity IDs and callback URLs

The entity ID and assertion consumer URL in the SAML configuration determine where the IdP will send users and which service provider it believes it is talking to. Pin both to the exact hostnames your users reach, and remove any alias or test hostname from the IdP's registration. Reviewing these values whenever a load balancer, DNS name or reverse proxy changes prevents an accidental redirect to a host you do not operate. Ask the IdP administrator to confirm the registered values in writing.

Basic login as a guarded fallback

When opensearch_security.auth.multiple_auth_enabled is true, basic authentication stays on the sign-in page, so a SAML outage will not lock out administrators, but it also gives password guessers a route around your IdP. Keep the local admin account for break-glass use only, store its password in a vault with a documented owner, and enforce a strong password policy with rotation. Consider whether the fallback should remain visible to all users at all, and review login rate limiting alongside it.

Session lifetime and re-authentication

A SAML sign-in establishes a Dashboards session, and that session can outlive the user's employment or role change at the IdP. Set a session lifetime that matches your policy for privileged access, and confirm how the IdP handles logout and disabled accounts. Ask the Dashboards and security teams to agree on how quickly a removed user loses access, then test that timing with a disabled test account rather than relying on the documented behavior alone.

Least-privilege group mapping

Mapping a broad IdP group such as all staff directly to an admin role is the most common way SAML sign-in grants more access than intended. Map each IdP group to the narrowest OpenSearch role that serves it, and keep admin roles bound to a small, separately governed group. Review the mapping whenever groups change, and use a test user in each group to confirm what that user can and cannot open. Illustrative example: a help desk group should read operational dashboards without rights to change security settings.

Audit logging of sign-in events

Sign-in events are only useful if they are recorded with enough detail to reconstruct who authenticated, through which method, and from where. Enable the Security plugin audit logging and decide where the records go, how long they are kept, and who can read them. Confirm that failed SAML responses and fallback basic logins appear in the log, and that a second team can review them. Check the audit categories against the events your investigators expect before an incident, not during one.

Security docs

Entra ID, ADFS and on-premises directories compared

When users already sign in to Microsoft 365 or other cloud applications, Microsoft Entra ID can act as the SAML identity provider for Dashboards directly. Entra ID publishes its federation metadata for each registered application, so the OpenSearch side needs the metadata for that specific enterprise application rather than a generic file. Entra ID is also the cloud identity service that Microsoft describes as the evolution of Active Directory Domain Services, which is why it suits organizations whose workforce is mostly cloud-based.

  • Metadata source: Use the federation metadata document from the Dashboards enterprise application in your tenant, and record which signing certificate it contains and when that certificate expires.
  • Claim configuration: Define the NameID and any attributes Dashboards needs in the application's claims settings, so the values match the subject and roles keys you configure in the Security plugin.
  • Group sourcing: Decide whether groups are emitted as claims, which group types are included, and whether large group lists need a filter, since group membership sent in the assertion determines the roles a user can map to.
  • Licensing: Confirm the Entra ID edition and any conditional access or group features your tenant uses, because those features affect who can sign in.
  • Tenant confirmation: Check tenant ownership, admin roles and who can change the enterprise application, since those permissions govern future certificate rotation.

Before go-live, confirm the tenant's sign-in policies and certificate expiry dates with your identity team, and do not assume the defaults match your access model.

Common SAML sign-in failures and their causes

This table lists the sign-in failures most often seen when Dashboards is federated with a SAML 2.0 identity provider, with the likely cause and the first fix for each. Work down the rows in order, since a mismatch in the identity provider metadata or the callback URL can produce symptoms that look like a role or login problem.

SymptomLikely causeFirst fix
Signature or certificate validation error after the identity provider redirects backThe signing certificate in the Security plugin configuration does not match the one the identity provider currently signs with, often after a certificate rolloverCompare the certificate in the identity provider metadata with the one in the SAML configuration, then update the configuration and restart or reapply it as your change process requires
Assertion rejected as not yet valid or expiredClock skew between the identity provider, the Dashboards host and the OpenSearch nodes, which exceeds the tolerance on the assertion timestampsConfirm all hosts sync to the same time source, then retest before changing any SAML settings
Identity provider shows an error about an unknown application or reply URLThe entity ID or assertion consumer (callback) URL registered at the identity provider does not match what Dashboards sends, including scheme, host name, port or pathCopy the exact entity ID and callback URL from the SAML configuration docs for your version and register them unchanged at the identity provider
Sign-in succeeds but the user gets no access or sees no indicesThe identity provider does not send the group or role attribute that the mapping expects, or the claim name or format differs from the configured keyInspect the SAML response for the attribute name and values, then align the roles key and the mapping to them
The SAML button is missing from the Dashboards sign-in pageMultiple authentication is off, so Dashboards only offers the configured primary methodConfirm opensearch_security.auth.multiple_auth_enabled is true and that the SAML authentication domain is listed as an option
User is locked out after basic login was removedBasic authentication was taken out of the sign-in page while the SAML path was not yet working, leaving no fallback for administratorsKeep basic authentication on the sign-in page until SAML is tested end to end, and keep a named break-glass admin account with a documented recovery path
Users are redirected to a sign-in loop or see an error after the identity provider callCallback URL, host name or proxy headers differ from the URL users type, so the session cookie or redirect is rejectedCheck the external URL and reverse proxy settings, and confirm the callback matches the address users actually browse to

Questions buyers ask about SAML for Dashboards

How much effort does a SAML setup for OpenSearch Dashboards take?

The effort depends mostly on how much access you can get to the identity provider, how many groups need to map to Dashboards roles, and how cleanly your role model is designed. A single identity provider with a small set of groups is a contained task. Each additional group, tenant and role mapping adds review and testing work, because every mapping decides what a user can read and write. Ask any partner to scope the work around three inputs: the identity provider access they will receive, the list of groups and attributes to map, and the roles those groups should receive. Also confirm whether your environment needs a separate test identity provider before production.

Can our team set up SAML for Dashboards without outside help?

Yes, a team with OpenSearch and identity administration skills can do it alone, and the Security plugin's SAML documentation covers the configuration. The harder part is usually the coordination: someone must register the Dashboards application in the identity provider, agree on the attributes that carry group names, and test sign-in and role outcomes for each group. If your identity team owns the provider and your platform team owns OpenSearch, plan a joint session for those decisions. A partner is most useful when the scope spans several identity sources or when the team lacks time to test every role path.

What do our identity and security staff need to provide?

Identity staff typically need to create the SAML application, decide the entity ID and reply URL for Dashboards, export or share the identity provider metadata, and confirm which claims or attributes the provider can send. Security staff should review which groups grant admin or broad read access, how sessions expire, and how certificates used for signing are rotated. Ask both teams to confirm whether the identity provider signs assertions, whether it encrypts them, and who owns the certificate renewal calendar. Those answers depend on your provider and environment, so confirm them with your vendor before the build starts.

What drives the cost of a SAML project for Dashboards?

Cost follows the time spent on identity provider coordination, group and role design, and testing. Internal staff time is a recurring cost for the people involved, while an outside partner is paid under a written scope. Costs rise when the group structure is unclear, when several tenants or identity sources are involved, or when production sign-in must be tested against many user types. They fall when groups are already documented and the identity provider is accessible. For a quote, ask for the deliverables, the test cases, the number of groups covered, and what is included for post-go-live changes. DeployOpen does not publish a price list, and a quote follows from the written scope.

Can SAML run beside basic login in Dashboards?

Yes. Dashboards can offer basic authentication, OpenID Connect and SAML together on the sign-in page when the multiple authentication setting is enabled, and basic authentication is always one of the options. Keeping basic login is useful for break-glass administrator access if the identity provider is unavailable, but it also means a second credential path that must be governed. Decide which accounts may use basic login, enforce strong passwords for them, and review that list regularly. Confirm the exact setting name and sign-in behavior for your Dashboards version in the documentation before you rely on it.

What changes if we move to a different identity provider later?

The Dashboards side changes less than the identity side. Moving from one SAML provider to another, for example from ADFS to a cloud provider, usually means registering a new application, updating the metadata and entity settings, and checking that group or attribute claims arrive with the same names. Role mappings may need edits if the new provider sends group identifiers in a different format. If you later change protocol, for example to OpenID Connect, the authentication backend changes as well, so the role mapping work must be repeated. Keep your group-to-role mapping documented and tested so that a provider change is a bounded task rather than a redesign.

Does the identity provider choice change the cost of the work?

It can, mainly through licensing and the identity infrastructure you already run. Active Directory Domain Services is a Windows Server role, and Microsoft's Windows Server 2025 pricing page lists a suggested price of 1,176 US dollars for Standard and 6,771 US dollars for Datacenter for 16 core licenses, with prices varying by region. Microsoft's comparison notes that existing Active Directory organizations use Microsoft Entra Connect to sync identities to Entra ID. Confirm with your Microsoft licensing representative which components your organization already owns, because those figures do not include your Client Access Licenses or your own agreements.

How DeployOpen scopes and delivers SAML integration

DeployOpen scopes SAML work as a fixed-scope engagement, so the written scope, deliverables and timeline are agreed before any configuration starts. The planning phase covers the identity provider side (for example, an Entra ID enterprise application or an AD FS relying party trust), the Dashboards side (the opensearch_security.auth.multiple_auth_enabled setting and the SAML authentication domain), the attribute claims that carry user and group values, and the role mapping that decides who gets which OpenSearch roles. Planning also records who owns each setting, which environments are in scope and how the team will handle a rollback if sign-in fails.

The implementation takes place in your own cloud accounts, data centers or air-gapped network. DeployOpen configures the identity provider, the Security plugin SAML settings, the role and role mapping definitions and the Dashboards sign-in page in your infrastructure, using your certificates and metadata. Testing covers more than the happy path: it includes sign-in for each group that should have access, denial for users outside the mapped groups, the basic login fallback, sessions after logout and the behavior when the identity provider is unreachable. Each finding is fixed and retested before handover.

Documentation records the final configuration, the claim and group mapping, the test results and the operational steps your team needs, such as certificate renewal and metadata updates. Ongoing support, upgrades and continuous testing are available as a retainer after handover. Ask any partner, including DeployOpen, to confirm in writing who holds administrator credentials for the identity provider and the cluster once the engagement closes.

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.