Set Up the Service Provider
Ta treść nie jest jeszcze dostępna w Twoim języku.
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 build | The 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 |
| Time | About 30 minutes (measured in the lab test, November 2026) |
| Org | Both orgs from chapter 4: the identity provider org for one file, the service provider org for everything else |
| Start from | The end of chapter 4’s lab: two orgs with their own My Domains and logos, an admin with MFA in each, Priya in both |
| Files | None to download from us. You download one file from your own identity provider org |
| You need | Your authenticator app, for the admin’s logins |
| Tested | Winter ‘27, November 2026 |
Before you start
Section titled “Before you start”- 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.
Step 1: Write down both addresses
Section titled “Step 1: Write down both addresses”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”-
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.

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
-
Note the Issuer, your IdP org’s My Domain address, and the certificate’s name and Expiration Date, one year away.
-
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”-
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. -
Tick SAML Enabled. Tick Make Federation ID case-insensitive too, and select Save.
You should see both ticked on the saved page.

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”-
On the same page, select New from Metadata File, then Choose File, pick the
SAMLIdP-….xmlfile 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.
-
Change two things before you save:
- Name:
IdP org. This is the name on the login page button. Salesforce fills in the API NameIdP_org. - SAML Identity Type: select Assertion contains the Federation ID from the User object.

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
- Name:
-
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.
-
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.
-
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.

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.
Step 5: Give Priya a Federation ID
Section titled “Step 5: Give Priya a Federation ID”-
In the SP org, from Setup, in Quick Find, enter
Users, select Users, then Priya Sharma, and Edit. -
Under Single Sign On Information, set Federation ID to
E10442, her employee number, and select Save.
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.
Step 6: Add the button to the login page
Section titled “Step 6: Add the button to the login page”-
In the SP org, from Setup, in Quick Find, enter
My Domain, select My Domain, scroll to Authentication Configuration, and select Edit. -
Under Authentication Service, keep Login Form ticked, tick IdP org, and select Save.

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
?loginstill showed the form. Keep Login Form ticked in this lab. With several identity providers, Salesforce suggests the Login Discovery page type.
Step 7: Look, and try the back door
Section titled “Step 7: Look, and try the back door”-
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 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
-
Don’t select the button yet. The identity provider doesn’t know this org until chapter 7, so it would fail.
-
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
?loginto the address to get it back for yourself.
Step 8: Write the pairs
Section titled “Step 8: Write the pairs”On your page, write module 3’s six pairs. The identity provider’s side waits for chapter 7.
| Pair | Service provider (this org) | Identity provider (chapter 7) |
|---|---|---|
| Who’s speaking | Issuer in the setting: the IdP org’s address | The IdP org’s Issuer (step 2) |
| Who it’s for | Entity ID: the SP org’s address | chapter 7 |
| Where answers go | Login URL in Endpoints | chapter 7 |
| How to check it | Identity Provider Certificate: the IdP’s self-signed certificate, expiry date | The certificate on the Identity Provider page (step 2) |
| Where to send people | Identity Provider Login URL: …/idp/endpoint/HttpRedirect | chapter 7 |
| Who it is | Priya’s Federation ID: E10442 | chapter 7 |
Check your lab
Section titled “Check your lab”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.
If something went wrong
Section titled “If something went wrong”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 or clean up
Section titled “Keep or clean up”Keep everything. Chapter 7 sets up the identity provider’s side, and the first single sign-on login happens there.
What you just proved
Section titled “What you just proved”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.
