Build Two Orgs, Before You Connect Them
هذا المحتوى غير متوفر بلغتك بعد.
Lab for chapter 4, Single Sign-On: The Browser Is the Broker, 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 | Two free Salesforce orgs, an identity provider and a service provider, that you can tell apart at a glance, each with an admin who can never be locked out and a test user, Priya Sharma |
| Time | About 60 minutes of work, plus about 5 to 10 minutes’ wait for each new My Domain (measured in the lab test, November 2026) |
| Org | Two new Developer Edition orgs. Keep both until the end of the course |
| Start from | Nothing. This is the course’s first lab |
| Files | Two logo images, idp-logo.png and sp-logo.png: identity-lab-logos v1.0 (opens in a new tab) on SkyData |
| You need | An email address you can receive mail at, with + aliases if your mail service supports them; an authenticator app on your phone; a browser with developer tools (Chrome, Edge, Firefox or Safari) |
| Tested | Winter ‘27, November 2026 |
Before you start
Section titled “Before you start”- Pick a short name for your lab. You’ll use it in both My Domain names, so make it something invented:
bluefin-lab, not your company and not your own name. Salesforce’s advice: “Avoid entering personal information in your domain name.” - Use English screens for the labs. The steps and screenshots name every screen in English. If your org shows another language, set it to English once you can log in (Part 1): your profile picture, Settings, Language & Time Zone, Language: English, then Save. Switch back the same way whenever you like.
- Decide how you’ll keep the two orgs’ details. You’ll have two usernames, two addresses and two passwords for yourself, and two more for Priya. A password manager is best; a private note is fine. Never in a shared document.
Part 1: Sign up for two orgs
Section titled “Part 1: Sign up for two orgs”-
Go to developer.salesforce.com/signup.
-
Fill in the form with your own details: First name, Last name, Job title, Company, Country/region and Work email. This is your agreement with Salesforce, so use your real name. The invented people come later, inside the orgs.

The form asks for your own details: it’s your agreement with Salesforce. Name, company and email hidden here (Salesforce, the Developer Edition sign-up page, screenshot, November 2026). Full size
-
Select the box that starts I agree to the Main Services Agreement – Developer Services, and read the two lines below it. Your org “may be provisioned on or migrated to Hyperforce”, and Salesforce “may terminate any org that has been inactive for 45 days”.
-
Select Sign me up.
-
Open the activation email (“Welcome to Salesforce: Reset your password”), and select Reset Password within 24 hours to set your password.
You should see a page that says Ready for a new password? with a Reset Password button first. After your password, the org opens on the Developer Edition app’s Welcome tab, “Your Developer Edition Toolkit”. That’s the org; you’re in.
-
Write down your username and the address, both in that email (“Here’s the username for your Developer Edition”). You didn’t choose the username: Salesforce made it from your email, a dot, a few random characters and
@agentforce.com, for exampleyou+idp.3f9c1a2b7d4e@agentforce.com. It isn’t your email, and you’ll need it to log in. -
Do steps 1 to 6 again for the second org, with a different email alias (
you+sp@example.com). -
In each org, give it a name you’ll recognize: from Setup, in Quick Find, enter
Company Information, select Company Information, then Edit. In Organization Name, enterIdP orgin the first andSP orgin the second. Save is at the bottom of the form.
Tip. If a password manager is installed, it may put its own icon inside the Organization Name box, so the box looks like a drop-down. It’s a plain text box.
Watch out. Log in to both orgs every few weeks. An org nobody logs in to for 45 days may be deleted, and you need these until the end of the course.
Part 2: Give each org its own address
Section titled “Part 2: Give each org its own address”Do this part in the IdP org first, then the SP org, before you wait for either.
-
From Setup, in Quick Find, enter
My Domain, then select My Domain. -
Under My Domain Details, select Edit.
-
In My Domain Name, enter your lab name plus the org’s role:
bluefin-lab-idp(orbluefin-lab-sp). Salesforce adds-dev-edto the end by itself, sobluefin-lab-idpbecomesbluefin-lab-idp-dev-ed. The whole name can have 3 to 27 characters,-dev-edincluded: letters, numbers and hyphens, not starting with a hyphen. -
Select Check Availability.
You should see a green Available, and below it Your chosen new My Domain URL:
bluefin-lab-idp-dev-ed.develop.my.salesforce.com.
Salesforce added -dev-ed to the name; Check Availability says Available. The org’s first address is hidden (Salesforce, Setup in a Developer Edition org, screenshot, November 2026). Full size
-
Select Save. Your browser asks Change Your My Domain URL?: select OK.
You should see Step 2: Provisioning in Progress, with your current domain and the new one.
-
Do steps 1 to 5 in the other org.
-
Wait. In the lab test, each new domain was ready in about 6 minutes. Salesforce says it “usually finishes in a few minutes, but it can take up to 24 hours”, and sends an email when it’s ready.
-
Back on My Domain, you see Step 3: Deploy Your New Domain. Select Deploy New Domain.

Ready to deploy, and the logo from Part 3 is already in the header. The old address is hidden (Salesforce, Setup in a Developer Edition org, screenshot, November 2026). Full size
You should see a login page at your new address. Log in again, and write the new address down beside the username.
-
Do step 8 in the other org.
Watch out. If you use the Salesforce CLI, log it in again at the new address after the deploy (
sf org login web -r https://<your new address>). Reads still work at the old address, but changes fail with “The URL has moved”.
Part 3: Give each org its own logo
Section titled “Part 3: Give each org its own logo”-
Download the two logos from SkyData, identity-lab-logos v1.0 (opens in a new tab):
idp-logo.png(blue) andsp-logo.png(orange), 600 × 120 pixels each. -
In the IdP org, from Setup, in Quick Find, enter
Themes and Branding, then select Themes and Branding. -
Select New Theme. A page opens, New Custom SLDS V2 Theme.
-
In Theme Name, enter
IdP org. In Description, enterLab theme for the identity provider org, so it never looks like the service provider org. -
Under Images, in Brand Image (600x120 pixels), upload
idp-logo.png. -
Select Save, then Activate.
You should see your logo at the top left of every page.

The new address is live, and the logo tells you which org you’re in (Salesforce, Setup in a Developer Edition org, screenshot, November 2026). Full size
-
Do steps 2 to 6 in the SP org, with the name
SP org, the descriptionLab theme for the service provider org, so it never looks like the identity provider org.andsp-logo.png.
Tip. The Themes and Branding page shows a banner that Salesforce Lightning Design System 2 “can have unexpected effects on custom themes”. A logo is all this lab changes, and it worked in the lab test.
Part 4: Protect your admin, the back door
Section titled “Part 4: Protect your admin, the back door”Your admin keeps a Salesforce password for the whole course and never uses single sign-on (module 5).
-
In the IdP org, select your profile picture, then Settings, then Advanced User Details.
-
Find the App Registration rows. In a new org they all say [Connect]: One-Time Password Authenticator, Salesforce Authenticator, and below them Security Key (U2F or WebAuthn).
![Advanced User Details in a new org: App Registration: One-Time Password Authenticator [Connect], App Registration: Salesforce Authenticator [Connect], Security Key (U2F or WebAuthn) View in Passkeys list, Lightning Login [Enroll].](/img/screenshot-sso-app-registration.webp)
Nothing connected yet: every method says Connect (Salesforce, personal settings in a Developer Edition org, screenshot, November 2026). Full size
-
Beside App Registration: One-Time Password Authenticator, select [Connect]. This is your main method: any authenticator app on your phone.
- Salesforce first checks that it’s really you: it emails you a verification code. Enter it.
- Then follow the screen: add the org to your authenticator app, and enter the code the app shows.
-
Beside App Registration: Salesforce Authenticator, select [Connect]. This is your backup, in case the first app is ever lost.
- This time Salesforce checks it’s you with the method you just connected: enter a code from your authenticator app.
- Then pair the Salesforce Authenticator app as the screen asks.
-
Make Salesforce ask for it. Connecting a method doesn’t do that: in the lab test, both new orgs (Winter ‘27) still let the admin log in with only a password. Give the requirement to your admin only, with a permission set:
- From Setup, in Quick Find, enter
Permission Sets, select Permission Sets, then New. - Label:
Admin MFA at Login. Description:Requires multi-factor authentication when this admin logs in with a username and password. Lab: the back door stays a password plus a code.Leave Session Activation Required unticked and License as —None—, and select Save. - Select System Permissions, then Edit. Tick Multi-Factor Authentication for User Interface Logins, and select Save. Salesforce shows Save changes? with the permission under Enabled: check it’s that one, and select Save.
- Select Manage Assignments, then Add Assignment. Tick your admin user, and select Next. Leave No expiration date, and select Assign.

Read the name under Enabled before you save: it has to be this one (Salesforce, Setup in a Developer Edition org, screenshot, November 2026). Full size
- From Setup, in Quick Find, enter
Watch out. Connecting multi-factor methods doesn’t make Salesforce ask for them. In the lab test (Winter ‘27, November 2026), both new orgs let the admin log in with only a password until a permission required it.
Watch out. Four permissions look alike, and in the lab test the wrong one was ticked first. Multi-Factor Authentication for User Interface Logins makes the user verify at login: that’s the one. Manage MFA in User Interface and Manage MFA in API are for an admin who helps other users with their methods. Multi-Factor Authentication for API Logins is for API logins. In the Save changes? box, read the name under Enabled before you save.
-
Log out and log back in as your admin, in the same browser, to check the code is asked for.
You should see Check Your Mobile Device (“Use Salesforce Authenticator to approve the request to Log In to Salesforce.”). Approve it on your phone. Or, if no request arrives, enter a code on Verify Your Identity.

After the password, Salesforce asks for the second factor (Salesforce, the login page of a Developer Edition org, screenshot, November 2026). Full size
Tip. Test in the browser you always use, not only in a private window. A private window counts as a new device, so Salesforce may ask for a code there even without the permission: that’s device activation, a separate check, and its page has a Don’t ask again box. In the lab test, a private window asked before the right permission was on, and the normal window didn’t. To see which check asked, go to Setup, Identity Verification History, and read the Triggered By column: Multi-factor authentication required is the permission at work; Activation is the new-device check. (Your Connect steps show as Access a protected page.)
Tip. After you verify, Salesforce may offer Lightning Login (“Hate passwords? So do we.”). Select Remind Me Later: this lab keeps the admin on a password plus a code.
-
Do steps 1 to 6 in the SP org. Your authenticator app now has two entries, one for each org. That’s expected: each org is its own back door.
You should see a verification step at login, in each org.
Watch out. An authenticator code changes every 30 seconds. In the lab test, one code was refused (“invalid code”) and the next one worked. Enter the code the app shows now, not the one you read a moment ago.
Tip. To see what happened, go to Setup, and in Quick Find, enter
Identity Verification, then select Identity Verification History. Each Connect shows as two rows, started and succeeded, with the method Salesforce used to check it was you.
Tip. The first time you log in at the new address, Salesforce may offer Register Your Mobile Phone, with Remind Me Later and I Don’t Want to Register My Phone. Registering a phone gives Salesforce a way to send you a code; an authenticator app is the method this lab sets up.
Watch out. Never give this admin the Is Single Sign-On Enabled permission. If single sign-on breaks later, this admin is how you get back in.
Part 5: Create Priya in both orgs
Section titled “Part 5: Create Priya in both orgs”-
In the IdP org, from Setup, in Quick Find, enter
Users, then select Users, and select New User. -
Fill in:
- First Name:
Priya - Last Name:
Sharma - Email: your email with an alias, such as
you+priya-idp@example.com - Username: Salesforce copies your email here. Replace it with
priya.sharma@bluefin-lab-idp.example.com. It only has to look like an email address, and it must be unique across all of Salesforce - Nickname: Salesforce fills in something like
User1795…. Replace it withpriya-idp - User License: it starts as Identity. Change it to Salesforce
- Profile: Standard User

The New User page, filled in with an example person. Choose the Salesforce license, then a profile (Salesforce, Setup in a Developer Edition org, screenshot, November 2026). Full size
- First Name:
-
At the bottom of the form, Generate new password and notify user immediately is already ticked. Leave it, and select Save. (Leave Federation ID, under Single Sign On Information, empty for now: chapter 6 fills it in.)
-
Salesforce sends Priya an email to set her password. Open it and set her password. In the lab test it arrived within a minute.
-
Do steps 1 to 4 in the SP org, with the email
you+priya-sp@example.com, the usernamepriya.sharma@bluefin-lab-sp.example.comand the nicknamepriya-sp.You should see Priya in each org’s user list. Same person, two usernames. That’s the first thing single sign-on has to solve, and chapter 6 shows how.
-
Log in as Priya in each org, in a private window.
You should see the Sales app’s Seller Home: “Good morning, Priya.”
Watch out. If you use the IdP org’s username for Priya in the SP org too, Salesforce refuses: “Duplicate Username. The username already exists in this or another Salesforce organization. Usernames must be unique across all Salesforce organizations.”
Tip. A new Developer Edition in the lab test had 4 Salesforce licenses, and 2 already in use: yours, and a second System Administrator Salesforce created with the org, OrgFarm EPIC. After Priya, one is left. See them in Setup, Company Information, User Licenses.
Part 6: Watch the browser be the broker
Section titled “Part 6: Watch the browser be the broker”-
Open a private browser window, so nothing is remembered.
-
Open the developer tools, and select the Network tab.
-
Tick Keep log (Chrome; some browsers call it Preserve log or Persist Logs), so the list survives each new page.
-
Go to your SP org’s My Domain address and log in as Priya.
A private window is a browser Salesforce doesn’t recognize, so it may stop Priya and email her a code: “You recently logged in to Salesforce from a browser or app that we don’t recognize.” Open Priya’s email, and enter the code. This is device activation, not multi-factor authentication. Those pages show up in the list too.
You should see hundreds of requests. Most are noise: the login page’s tracking calls, and the pieces Lightning loads to draw the page.
-
Select the Doc filter, so only whole pages show. Then select the Status column to sort by it. The responses whose status starts with 3 are redirects: the server saying “go there instead”, with the new address in the Location header.

The redirects behind one click: the browser follows each 302. The session ID is hidden (Google Chrome developer tools, showing a Salesforce Developer Edition org, screenshot, November 2026). Full size
-
Count them, and write down where each one sent the browser.
In the lab test (November 2026), four page redirects took Priya from login to Seller Home, and the browser went back and forth between the org’s two addresses:
- the My Domain’s
/one/one.appsent her to the same page on the org’slightning.force.comaddress; - that one sent her back to the My Domain, to
/visualforce/session?url=…, with the Lightning address in theurl; sessionand thenrecsession?sid=…sent her on, carrying her session across to the Lightning address.
Every hand-off you can see went through the browser: each Location told it where to go next, and it went. That’s the broker you’ll watch in every single sign-on flow from chapter 6 on.
- the My Domain’s
Watch out.
recsession?sid=carries a session ID in the address. Never share a screenshot or a copy of this list without hiding it: anyone with a live session ID is logged in as Priya.
Tip. Without the Doc filter you’ll also see many
302s onauraCmpDef(type script). Those are Lightning fetching its own pieces, not the login.
Check your lab
Section titled “Check your lab”Before chapter 6, tick each one:
- Two orgs, each with its own My Domain address, written down beside its username.
- A different logo in each, so you can tell them apart at a glance.
- An admin in each, with a password and multi-factor authentication, and no Is Single Sign-On Enabled.
- Priya in both, and you’ve logged in as her in each.
- You’ve logged in to both orgs in the last few weeks.
If something went wrong
Section titled “If something went wrong”From the lab test, November 2026:
- “It looks like your network doesn’t allow you to access these domains.” Right after provisioning, the page may say this in red, with Deploy New Domain greyed out. The new address wasn’t reachable yet. Wait a minute and reload the page; in the lab test the warning was gone and Deploy was ready.
- The Salesforce CLI says “The URL has moved”. It still has your old address. Log it in again at the new one.
- “Duplicate Username.” Someone, maybe you in the other org, already has that username. Choose another; it doesn’t need to match the email.
- This domain name isn’t available. Someone else has it. Add a number to the end.
- You changed something in the wrong org. That’s why the logos are there. Change it back, then check the logo before each change.
Keep or clean up
Section titled “Keep or clean up”Keep everything. Both orgs, both admins, both Priyas. Chapter 6 connects them one way, and chapter 7 the other way.
What you just proved
Section titled “What you just proved”You can stand up a lab that’s safe to break: two orgs you can tell apart, a back door in each, and a test user who can fail all day. And with only one org, you watched the browser follow redirects, the same thing single sign-on does, with a second org added (module 3).
Next lab: chapter 6, Set Up the Service Provider.
