Skip to content

Set Up the Service Provider

This content is not available in your language yet.

Lab for chapter 6, Salesforce as the Service Provider: SAML, in Securing Salesforce: Identity and Access. The practice asks why each of these steps matters; this page is how to do them.

You’ll buildThe service provider’s half of single sign-on: a SAML setting that trusts the identity provider org, a Federation ID for Priya, and a login page button, with the admin’s back door still working
TimeAbout 30 minutes (measured in the lab test, November 2026)
OrgBoth orgs from chapter 4: the identity provider org for one file, the service provider org for everything else
Start fromThe end of chapter 4’s lab: two orgs with their own My Domains and logos, an admin with MFA in each, Priya in both
FilesNone to download from us. You download one file from your own identity provider org
You needYour authenticator app, for the admin’s logins
TestedWinter ‘27, November 2026
  • Log in to both orgs as the admin, in two tabs, and check the logos. Every step says which org it’s in.
  • Open a page for the pairs (step 8). A private note is fine.

In each org, copy the address from the browser: https://bluefin-lab-idp-dev-ed.develop.my.salesforce.com and https://bluefin-lab-sp-dev-ed.develop.my.salesforce.com in the example. Every value below comes from these two.

Step 2: Identity provider org: take the metadata

Section titled “Step 2: Identity provider org: take the metadata”
  1. In the IdP org, from Setup, in Quick Find, enter Identity Provider, then select Identity Provider.

    You should see that it’s already on. In the lab test, deploying the new My Domain in chapter 4 had made a self-signed certificate and turned the identity provider on: the page showed Edit and Disable, not Enable Identity Provider. If you do see Enable Identity Provider, select it, keep the default certificate, and save.

    The Identity Provider page in Setup: Identity Provider Setup with Edit, Disable, Download Certificate and Download Metadata, the Issuer address, and the chosen self-signed certificate.

    Already on: Edit and Disable, not Enable. The Issuer and the certificate come from here (Salesforce, Setup in a Developer Edition org, screenshot, November 2026). Full size

  2. Note the Issuer, your IdP org’s My Domain address, and the certificate’s name and Expiration Date, one year away.

  3. Select Download Metadata. Your browser saves a file named SAMLIdP- and your org’s ID, ending .xml. It describes this identity provider for any service provider; there’s nothing secret in it.

Tip. You may find the identity provider already on. In the lab test (Winter ‘27, November 2026), deploying a new My Domain made a self-signed certificate and turned the identity provider on, with nobody selecting Enable Identity Provider.

Tip. Edit on this page only chooses the certificate. Its warning is worth reading: “If you change this certificate, users can’t connect to service providers until you reconfigure each service provider to work with the new certificate.”

Step 3: Service provider org: turn on SAML

Section titled “Step 3: Service provider org: turn on SAML”
  1. Switch to the SP org (check the logo). From Setup, in Quick Find, enter Single Sign-On, then select Single Sign-On Settings, and Edit.

  2. Tick SAML Enabled. Tick Make Federation ID case-insensitive too, and select Save.

    You should see both ticked on the saved page.

    Single Sign-On Settings in edit: SAML Enabled ticked and Make Federation ID case-insensitive ticked.

    Both boxes ticked. In the lab test, the second one had to be ticked by hand (Salesforce, Setup in a Developer Edition org, screenshot, November 2026). Full size

Watch out. Salesforce Help says the case-insensitive setting “is enabled by default when you enable SAML for the first time”. In the lab test it wasn’t: both boxes started unticked, and after saving SAML Enabled, the case-insensitive box was still off. Tick it yourself, and check.

Step 4: Create the setting from the metadata file

Section titled “Step 4: Create the setting from the metadata file”
  1. On the same page, select New from Metadata File, then Choose File, pick the SAMLIdP-….xml file from step 2, and select Create.

    You should see a filled-in form: the Issuer, the identity provider’s certificate (under Current Certificate), the Entity ID, the login URL.

  2. Change two things before you save:

    • Name: IdP org. This is the name on the login page button. Salesforce fills in the API Name IdP_org.
    • SAML Identity Type: select Assertion contains the Federation ID from the User object.

    The SAML Single Sign-On Settings form: Name IdP org, Issuer and Entity ID, the identity provider's certificate, RSA-SHA256, SAML Identity Type set to Assertion contains the Federation ID from the User object, NameIdentifier, HTTP Redirect, and the Identity Provider Login URL. The org ID in the certificate is hidden.

    The setting from the metadata file, with the identity type changed to the Federation ID (Salesforce, Setup in a Developer Edition org, screenshot, November 2026). Full size

  3. Check the rest against module 3, and leave them:

    • Issuer: the IdP org’s address, the same as in step 2.
    • Entity ID: your SP org’s address.
    • Request Signing Certificate: the SP org’s own self-signed certificate. Request Signature Method: RSA-SHA256.
    • SAML Identity Location: Identity is in the NameIdentifier element of the Subject statement.
    • Service Provider Initiated Request Binding: HTTP Redirect, with a red line under it: “Warning: The metadata file specifies multiple bindings for the login URL.” The file offers more than one way in; Salesforce picked one. Leave it.
    • Identity Provider Login URL: the IdP org’s address, ending /idp/endpoint/HttpRedirect.
    • Single Logout Enabled: ticked, from the file. Untick it. This lab doesn’t set up single logout.
  4. Select Save.

Watch out. The metadata file turns on Single Logout Enabled, but the identity provider won’t have single logout on for this org. In the lab test, with it left on, Log Out in this org ended on the identity provider’s “Logout Error” page. Untick it, unless you set up single logout on both sides. Chapter 7, module 4 says what single logout does.

Watch out. The form from the metadata file comes with Assertion contains the User’s Salesforce username selected. In the lab test, the first save kept it, and it had to be changed afterwards. Priya’s usernames differ between the orgs, so a username would never match: it has to be the Federation ID.

  1. Scroll to Endpoints, under Your Organization, and write down:

    • Login URL: your SP org’s address. This is the address the identity provider sends its answers to, the one Salesforce Help calls the Assertion Consumer Service (ACS) URL.
    • Logout URL and OAuth 2.0 Token Endpoint: note them; chapter 7 doesn’t need them.
    • The Entity ID isn’t in this section: copy it from the top of the setting.

    The Endpoints section of the saved setting: Your Organization, Login URL, Logout URL and OAuth 2.0 Token Endpoint, with the buttons Edit, Delete, Clone, Download Metadata and SAML Assertion Validator.

    Login URL, Logout URL and the token endpoint: the Login URL is where the answers go (Salesforce, Setup in a Developer Edition org, screenshot, November 2026). Full size

Watch out. Salesforce Help lists “Assertion Consumer Service (ACS) URL” and “Entity ID” among the Endpoints. In the lab test, the section showed Login URL, Logout URL and OAuth 2.0 Token Endpoint, and no row with either name. The Login URL is the one to give the identity provider: in the lab test, its answer arrived there.

  1. In the SP org, from Setup, in Quick Find, enter Users, select Users, then Priya Sharma, and Edit.

  2. Under Single Sign On Information, set Federation ID to E10442, her employee number, and select Save.

    Priya's user record in edit: Single Sign On Information, Federation ID E10442.

    The value both orgs will keep the same (Salesforce, Setup in a Developer Edition org, screenshot, November 2026). Full size

Write E10442 on your pairs page. In chapter 7, the identity provider sends exactly this value for its Priya.

  1. In the SP org, from Setup, in Quick Find, enter My Domain, select My Domain, scroll to Authentication Configuration, and select Edit.

  2. Under Authentication Service, keep Login Form ticked, tick IdP org, and select Save.

    My Domain's Authentication Configuration in edit: Login Page Type Standard; Authentication Service with Login Form and IdP org ticked; Logo File, Background Color, Right Frame URL and the native browser options.

    The login page offers what’s ticked here: the form and the IdP org button (Salesforce, Setup in a Developer Edition org, screenshot, November 2026). Full size

Watch out. Check that the saved section lists IdP org under Authentication Service. In the lab test, the first time, the page was left without saving, and the login page had no button.

Tip. There’s no separate setting that sends everyone straight to the identity provider, and none is needed. This page chooses what the login page offers: the form, each provider, a logo, a background color. In the lab test, with only the provider ticked, the service provider’s address went straight to the identity provider’s login page, and adding ?login still showed the form. Keep Login Form ticked in this lab. With several identity providers, Salesforce suggests the Login Discovery page type.

  1. Open a private window, and go to your SP org’s address.

    You should see the login form, then Or, and a button: Log in with IdP org.

    The service provider's login page: Salesforce login with Username, Log In, Remember me and Forgot Your Password?, then Or and a Log in with IdP org button.

    The form for the admin’s back door, and the button for single sign-on (Salesforce, the login page of a Developer Edition org, screenshot, November 2026). Full size

  2. Don’t select the button yet. The identity provider doesn’t know this org until chapter 7, so it would fail.

  3. Log in as your admin with the form: username, password, then your authenticator (Check Your Mobile Device). If Salesforce offers Lightning Login, select Remind Me Later.

    You should see your admin’s home page. The back door works with single sign-on on the page. If you ever remove the login form, add ?login to the address to get it back for yourself.

On your page, write module 3’s six pairs. The identity provider’s side waits for chapter 7.

PairService provider (this org)Identity provider (chapter 7)
Who’s speakingIssuer in the setting: the IdP org’s addressThe IdP org’s Issuer (step 2)
Who it’s forEntity ID: the SP org’s addresschapter 7
Where answers goLogin URL in Endpointschapter 7
How to check itIdentity Provider Certificate: the IdP’s self-signed certificate, expiry dateThe certificate on the Identity Provider page (step 2)
Where to send peopleIdentity Provider Login URL: …/idp/endpoint/HttpRedirectchapter 7
Who it isPriya’s Federation ID: E10442chapter 7

Before chapter 7, tick each one:

  • The setting IdP org is saved, with Federation ID as the identity type and Single Logout Enabled unticked, and you’ve checked its Issuer.
  • Make Federation ID case-insensitive is ticked.
  • Priya has the Federation ID E10442.
  • The SP login page shows the form and Log in with IdP org.
  • Your admin logged in with the form, a password and MFA.
  • The pairs are on one page, with the blanks for chapter 7.

From the lab test, November 2026:

  • No Enable Identity Provider button. It’s already on (step 2). Use Download Metadata.
  • The case-insensitive box is off after saving. Edit again, tick it, save (step 3).
  • “Logout Error” at the identity provider when you log out. Single Logout Enabled is still ticked: edit the setting and untick it (step 4).
  • The setting says SAML Identity Type: Username. Edit the setting and choose the Federation ID (step 4).
  • No button on the login page. The Authentication Configuration wasn’t saved: edit it, tick the provider, and save (step 6).
  • You changed something in the wrong org. Check the logo, change it back.

Keep everything. Chapter 7 sets up the identity provider’s side, and the first single sign-on login happens there.

The service provider knows whom to trust and how to check what it’s sent: the identity provider’s issuer and certificate, from its own metadata. It knows how to find Priya when she arrives: by a Federation ID that both sides will keep. And the admin’s back door still opens with a password and MFA. Nothing has crossed between the orgs yet; that’s chapter 7.

Next lab: chapter 7, Connect the Two Orgs.