SAML Guide for Identity Providers
This guide is for the identity provider (IdP) team connecting members to an organization's CareLaunch instance. Your members sign in to that instance with the account they already have with you. You register CareLaunch as a SAML 2.0 service provider application; the organization's CareLaunch administrator (its Organization Admin) turns the connection on in CareLaunch (see Setting Up SAML Single Sign-On for Patients).
At a glance
| Item | CareLaunch's requirement |
|---|---|
| Protocol | SAML 2.0, with CareLaunch as the service provider (SP) |
| Who signs in | Patients (your members) only, not staff |
| Sign-in flow | Your member portal links to CareLaunch's sign-in start URL. CareLaunch sends you a sign-in request and you answer it, so a member already signed in with you goes straight through. If you can only post assertions CareLaunch didn't request (unsolicited, IdP-initiated), the instance can be set to accept them; you then send the default RelayState the instance gives you. |
| Sign-in request to you | HTTP-Redirect binding to your https sign-on endpoint |
| Response to CareLaunch | HTTP-POST to CareLaunch's Reply URL |
| Signing | Assertions must be signed |
| Encryption | Optional. If the Organization Admin turns on encrypted assertions, encrypt every assertion with CareLaunch's encryption certificate; unencrypted ones are then refused. Otherwise send them unencrypted (the connection is https). |
| NameID | Persistent, stable member ID; never an SSN |
| Required attribute | |
| Single logout | Not supported |
| Client ID or secret | None: the trust is your metadata and signing certificate |
| SP certificate | Only for encryption. CareLaunch doesn't sign its sign-in requests, so leave request-signing fields empty. If encryption is on, load CareLaunch's encryption certificate as the SP encryption certificate. |
Answers to a typical IdP request list
If your team sends a standard list of what you need from a vendor, here is the answer to each item and who supplies it.
| You ask for | Answer | Who supplies it |
|---|---|---|
| Technical documentation | This guide. | CareLaunch |
| SP metadata or public certificate for encryption (test and production) | The SP metadata file from each instance's Single sign-on page. It has no certificate unless that instance has encrypted assertions turned on; then it includes CareLaunch's encryption certificate, which is also available on its own as a .crt file. CareLaunch doesn't sign its requests, so there is no signing certificate. | The Organization Admin, from each instance |
| Destination URL (test and production) | The Reply URL: an Amazon Cognito address ending in /saml2/idpresponse. Use it as the assertion's Destination and Recipient. It is not the instance's web address. The address your portal links members to is the sign-in start URL, which is on the instance's web address and ends in /sso-start. | The Organization Admin, from each instance |
| Service Provider ID (SAML Entity ID or Audience) (test and production) | The Entity ID, which looks like urn:amazon:cognito:sp:us-east-1_XXXXXXXXX. | The Organization Admin, from each instance |
| Mutual member identifier (SAML NameID) | One stable ID per person, such as a member ID, that is never reassigned and isn't shared by a subscriber and their dependents. An employee ID works only if each dependent has their own. Never use a Social Security number or its last four digits. Don't build the NameID from demographic values (name, date of birth): they aren't unique to one person and can change, which would lock the member out. Send those as attributes instead. See NameID and attributes. | You |
| Additional SAML attributes | Email is required. First name, last name, date of birth, phone, gender and address are optional. You choose the attribute names and tell the Organization Admin. See NameID and attributes. | You |
| Relationship restrictions (for example, subscribers only) | CareLaunch doesn't filter by relationship. The organization decides who is eligible, and you enforce it by assigning the application only to those members. See Who may sign in. | The organization decides; you enforce it |
| IP addresses for allowlisting | Nothing to allowlist in either direction. The assertion is posted by the member's browser, not by your servers, so CareLaunch never sees your server addresses and doesn't filter by them. CareLaunch's Reply URL is on Amazon Cognito, which has no fixed IP addresses; if your network has to allow outbound traffic, allow it by hostname. If you give a metadata URL, Amazon Cognito reads it from AWS addresses that aren't fixed, so a URL behind an IP allowlist won't work; send the metadata XML file instead. | No one: not needed |
| Go-live date | Agreed between you and the organization once testing passes. | The organization, with you |
Values CareLaunch gives you
The Organization Admin copies these from the CareLaunch instance's Single sign-on page and sends them to you. Each instance has its own sign-in start URL, so a test instance and a production instance are two separate applications on your side. Instances that share one CareLaunch sign-in pool show the same Entity ID and Reply URL; if your IdP needs a unique Entity ID per application, ask the Organization Admin to check with CareLaunch Support.
| Value | Other names |
|---|---|
| Entity ID | Service Provider ID, Audience, Audience URI, SP Entity ID, Identifier |
| Reply URL | Destination URL, Recipient, Assertion Consumer Service (ACS) URL, Single sign-on URL |
| Sign-in start URL (your portal link) | Sign on URL, portal or app tile link |
| Encryption certificate (only if encryption is on) | SP encryption certificate, assertion encryption key |
The Entity ID looks like urn:amazon:cognito:sp:us-east-1_XXXXXXXXX, and the Reply URL ends in /saml2/idpresponse. Enter both by hand in your SAML application, or ask the Organization Admin for CareLaunch's SP metadata file, which they download from the instance's Single sign-on page. The file has no certificate in it unless the instance requires encrypted assertions; then it includes CareLaunch's encryption certificate. The Organization Admin can also send that certificate on its own as a .crt file.
Link your member portal or app tile to the sign-in start URL. That's how members sign in from your side: CareLaunch sends a sign-in request to your sign-on endpoint, and your IdP answers it. Leave the default RelayState empty.
If your portal can only post assertions straight to the Reply URL (IdP-initiated), ask the Organization Admin to accept sign-ins started from your identity provider. They then give you a default RelayState for each instance; set it on the app, and send it with every assertion. Assertions must still be signed. On a member's first sign-in CareLaunch sends you one sign-in request to finish linking the account, so your IdP must still answer requests.
What we need from you
Send these to the Organization Admin for each application (test and production):
- Your IdP metadata: a metadata URL (https, reachable from the public internet; preferred, because certificate changes are picked up on their own) or the metadata XML file (UTF-8, up to 128 KB). It must describe one IdP, with an https sign-on endpoint and at least one signing certificate that is valid today. Never send a private key.
- The attribute names your assertion uses for email and any of the optional fields listed below. Names are case-sensitive.
- The NameID you'll send (a per-person ID, persistent format), and confirmation that your IdP answers CareLaunch's sign-in request.
- A test member with an email address, assigned to the test application, so the Organization Admin can run a real sign-in.
- A contact on your team for certificate changes and sign-in problems.
NameID and attributes
NameID: send a stable ID that belongs to one person, is never reassigned and isn't shared between a subscriber and their dependents, in persistent format. CareLaunch binds the member's account to it on first sign-in and recognizes them by it afterwards. If it changes, that member can't sign in until CareLaunch Support clears the old binding. Never use a Social Security number or any other government ID, in the NameID or any attribute.
| Field | Required | Format CareLaunch accepts |
|---|---|---|
| Yes | A valid email address, unique to the member. It may differ from the NameID. CareLaunch treats it as verified. | |
| First name | No | Text |
| Last name | No | Text |
| Date of birth | No | YYYY-MM-DD (an ISO 8601 timestamp also works). Other formats such as MM/DD/YYYY are ignored. |
| Phone number | No | 10 to 15 digits; punctuation is removed and a leading + is kept |
| Gender | No | male, female, other or unknown (or m, f, unk); other values are ignored |
| Address | No | One line of text, or an OIDC-style address object (street_address, locality, region, postal_code) |
CareLaunch updates the member's record from these values at every sign-in. A value in the wrong format doesn't block sign-in; it's just not saved. Other attributes, such as a client, group or plan identifier, are ignored.
Who may sign in
CareLaunch lets in anyone you send with a valid, signed assertion that includes an email. It doesn't check eligibility itself, so:
- Restrict access on your side, for example by assigning the CareLaunch application only to eligible members, or only to subscribers if dependents shouldn't have access.
- Dependents sign in with their own account at your IdP, their own NameID and their own email. Two people who share one email can't both have a CareLaunch account.
- Removing access: unassign the member at your IdP. They can't start a new sign-in after that. A CareLaunch session they already have open isn't ended by this; the Organization Admin can deactivate the account in CareLaunch if access must stop at once.
Testing, going live and certificate changes
- Set up the test application with the test instance's values, and send the Organization Admin your metadata and attribute names.
- The Organization Admin enters them on the CareLaunch instance and turns sign-in on.
- Together, run a sign-in with your test member: start from your test portal link to the test instance's sign-in start URL (or the instance's sign-in page and Continue with SSO), sign in at your IdP, and confirm the member lands on CareLaunch registration with the right name and details filled in. After they finish registration, they land in their CareLaunch portal; later sign-ins go straight there.
- Sign out and sign in again as the same member. They should reach the same record, not a new one.
- Repeat with the production application and the production instance's values.
Encryption: if you encrypt assertions, the Organization Admin turns encryption on and sends you the certificate before step 3. CareLaunch refuses unencrypted assertions from then on. The certificate is per instance, and an instance gets a new one if its sign-in is set up again, so encrypt with the one the Organization Admin sends for that instance.
Certificate rotation: if you gave a metadata URL, publish the old and new signing certificates side by side for at least 6 hours before retiring the old one. CareLaunch rereads the URL about every 6 hours. If you gave an XML file, send the Organization Admin the new file before the current certificate expires, because an uploaded file never updates on its own.
Common problems
| What the member sees | Likely cause on your side |
|---|---|
| An error right after signing in at your IdP | Entity ID or Reply URL entered wrong, assertion unsigned or expired, a metadata URL that isn't reachable from the internet, or (with encryption on) an assertion not encrypted with the instance's current certificate |
| Sign-in fails when your portal sends the member straight to CareLaunch | The instance doesn't accept sign-ins started from your IdP, or the default RelayState is missing or not the one the instance gave you. Point the portal link at the sign-in start URL instead, or ask the instance to turn this on and send its RelayState |
| "Your account couldn't be set up from your organization's sign-in" | No email in the assertion, or the attribute name doesn't match what the Organization Admin entered |
| "This email address is already used by a different account" | The member's NameID changed, or two members share one email |
| Signed in, but a detail is missing from their record | Attribute name mismatch, or a value in a format CareLaunch doesn't accept (for example a date of birth not in YYYY-MM-DD) |
For anything else, contact the Organization Admin, or reach CareLaunch directly at support@carelaunch.health.
Last updated: November 2026