Before Changing Identity Providers, Audit the Endpoint URLs in Your SAML Metadata

Use this checklist to compare SAML metadata URLs, identifiers, bindings, and environments before changing identity providers, without exposing private data.

Published
Reading time
7 min read
Before Changing Identity Providers, Audit the Endpoint URLs in Your SAML Metadata
On this page

Before changing identity providers (IdPs), compare the identifiers and endpoint URLs in your SAML metadata with the settings that will be used after migration. A small hostname or path difference can send a sign-in or logout flow to the wrong environment.

This checklist shows how to check SAML metadata endpoint URLs, distinguish IdP endpoints from service provider (SP) endpoints, and review changes without sharing private metadata.

Key Takeaways

  • Record the entityID separately from endpoint URLs: it identifies a SAML entity and is not necessarily a URL you can visit.
  • Check IdP SingleSignOnService endpoints and SP AssertionConsumerService endpoints, plus SingleLogoutService endpoints on either side if logout is used.
  • Compare scheme, hostname, path, environment, binding, and applicable endpoint attributes—not just whether a URL looks valid.
  • A syntactically valid URL does not prove that an endpoint is reachable, trusted, or correctly configured.
  • Review the exact migration instructions for your IdP and validate the new trust in an authorized test environment.

Find the identifiers and endpoints

SAML metadata is XML. It can contain one EntityDescriptor or a collection of entity descriptors. Within an entity, look at the role containing each endpoint: IDPSSODescriptor describes IdP services, while SPSSODescriptor describes SP services. One entity may contain more than one role.

The following fictional excerpt illustrates the fields to inventory. It is not a complete migration configuration, and the example has not been executed or validated against a schema here.

<EntitiesDescriptor xmlns="urn:oasis:names:tc:SAML:2.0:metadata">
  <EntityDescriptor entityID="https://idp.example.com/entity">
    <IDPSSODescriptor
      protocolSupportEnumeration="urn:oasis:names:tc:SAML:2.0:protocol">
      <SingleSignOnService
        Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect"
        Location="https://idp.example.com/saml/sso" />
      <SingleLogoutService
        Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect"
        Location="https://idp.example.com/saml/logout" />
    </IDPSSODescriptor>
  </EntityDescriptor>

  <EntityDescriptor entityID="https://sp.example.com/entity">
    <SPSSODescriptor
      protocolSupportEnumeration="urn:oasis:names:tc:SAML:2.0:protocol">
      <AssertionConsumerService
        Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"
        Location="https://sp.example.com/saml/acs"
        index="0" />
    </SPSSODescriptor>
  </EntityDescriptor>
</EntitiesDescriptor>
FieldWhere to lookWhat to record
entityIDAttribute of each EntityDescriptorThe exact identifier and whether it belongs to the IdP or SP. Treat it as an identifier even when it resembles an HTTPS URL.
SingleSignOnServiceUsually under IDPSSODescriptorEach Location and its Binding; the SP uses the applicable IdP endpoint to initiate sign-in.
AssertionConsumerService (ACS)Under SPSSODescriptorEach Location, Binding, index, and any isDefault value. The IdP sends the authentication response to the applicable SP endpoint.
SingleLogoutServiceUnder an IdP or SP role descriptorEach Location, Binding, and any ResponseLocation. Record which party owns it.

An endpoint can occur more than once with different bindings or indexes. Do not assume the first entry is the one your integration uses. For logout, record ResponseLocation separately when present; it can specify where responses are sent rather than requests.

Advertisement

How to check SAML metadata endpoint URLs

Prepare an inventory for each application and environment. Keep the current IdP metadata, proposed IdP metadata, and relevant SP metadata or configuration separate. Compare like roles and bindings: an old IdP SSO endpoint corresponds to a new IdP SSO endpoint, not to the SP's ACS.

  1. Confirm the source and environment. Obtain metadata through your organization's trusted process. Label each file as current or proposed and as production, staging, or another environment. Verify its authenticity according to your integration's trust procedure.
  2. Record entity identifiers. Copy the exact IdP and SP entityID values into a protected inventory. Check whether the new IdP identifier must be registered with the SP and whether the SP identifier must be registered with the new IdP.
  3. Inventory every relevant endpoint. Record the role, element name, binding, location, index, default flag, and logout response location where present. Note which entry the integration actually uses.
  4. Compare URL components. Review the scheme, hostname, path, and any port or query string. Confirm that each points to the intended environment and owner. Treat differences as items to investigate, not automatically as errors.
  5. Compare both sides of the trust. Check the SP's configured IdP SSO and logout destinations against the intended new IdP settings. Check the new IdP's configured SP identifier and ACS against the intended SP settings. An IdP migration does not necessarily change the SP's ACS.
  6. Review trust material and behavior. Alongside URLs, check signing certificates, signature requirements, supported bindings, and logout behavior against both products' configuration. An endpoint comparison alone does not establish trust.
  7. Assign an owner to every difference. Record the intended change, who will update each side, how it will be tested, and the rollback path. Avoid treating a matching URL as proof that the integration is ready.

For URL comparison, check these details:

  • Scheme: Confirm the scheme required by your security policy and the products involved. Do not silently replace HTTPS with HTTP.
  • Hostname: Confirm ownership and the expected environment. A familiar-looking domain can still be the wrong tenant or environment.
  • Path: Compare the complete path, including capitalization and trailing slash. Do not assume two variations are interchangeable.
  • Environment: Confirm that production does not reference a staging IdP or ACS unless that relationship is intentional and approved.
  • Port and query: If present, compare them as well; do not discard them during review.

A URL's shape can help you spot a mistake, but do not normalize or rewrite values before comparing them without understanding how the receiving product treats them.

Keep the audit private

Perform the comparison locally or in an approved administrative system. Metadata can reveal internal hostnames, application relationships, and trust configuration, even when it contains no password. Do not paste production metadata, signed URLs, tokens, or other sensitive values into an unapproved online parser, ticket, or chat.

Use fictional values when asking for help. If a ticket needs evidence, share only the minimum approved information, such as the endpoint role, environment, and a redacted difference. Preserve the original securely for administrators who need the exact values. Treat XML files as untrusted input when their origin is uncertain; use your organization's approved tools and safe XML-handling settings.

Advertisement

Validate before cutover

A URL parser can identify components and detect some malformed values. It cannot establish that a host is reachable, that the service at the endpoint is the intended one, or that SAML trust and configuration are correct.

Use an authorized test environment and a designated test account to validate the integration end to end:

  • Confirm that the SP initiates sign-in using the intended IdP endpoint and binding.
  • Confirm that the IdP returns the response to the intended ACS and that the SP accepts it under its configured trust and validation rules.
  • Check the relevant product logs for destination, issuer, audience, recipient, signature, and response-correlation errors. Follow your products' guidance for diagnosing each failure.
  • If single logout is required, test the supported logout flows and applicable response endpoints separately from sign-in.
  • Confirm the production configuration and rollback procedure before cutover; a successful staging test does not prove production is configured identically.

A generic HTTP request to an endpoint may be useful for limited network troubleshooting, but an HTTP error or redirect by itself does not prove the SAML flow is broken—or that it works. Some endpoints expect a particular protocol message or binding.

Common Mistakes

  • Treating entityID as an endpoint. It is an identifier; do not assume it must resolve in a browser or that it can replace an SSO or ACS location.
  • Checking only the IdP metadata. The SP's ACS and its configured trust also matter, even if the SP endpoint is not changing.
  • Ignoring binding and endpoint selection. Matching locations alone is insufficient when multiple entries exist or a product selects an endpoint by binding or index.
  • Assuming logout follows automatically from sign-in. Logout endpoints and product behavior require their own review and test when logout is in scope.
  • Publishing raw metadata for troubleshooting. Redact and use approved channels; a public certificate in metadata does not make every detail of the file suitable for public sharing.
  • Equating valid syntax with a working integration. Reachability, trust, protocol validation, and environment configuration still need verification.

Best Practices

Keep a protected, application-by-application inventory of entity identifiers, endpoints, bindings, and certificate ownership. Review it with both IdP and SP administrators before making changes. Use the exact migration documentation for your IdP and the documentation for each affected SP; product-specific import behavior and migration steps can differ.

The OASIS SAML 2.0 Metadata specification and an IdP's official migration documentation were not available to consult for this article. Verify the fields and provider-specific steps against those primary sources before making production changes.

Conclusion

Inventory identifiers and endpoints by role, compare the complete URLs and bindings across environments, and validate the resulting trust with an authorized end-to-end test. A clean URL comparison is a useful starting point, not a substitute for a migration test.

What would your domain sell for?

A free TidyURLs account unlocks the Domain Estimator. It prices a name from 191,011 real domain sales.