Embedded Login
Tämä sisältö ei ole vielä saatavilla valitsemallasi kielellä.
Module 4 of 5 in the chapter The Login Experience, chapter 15 of Securing Salesforce: Identity and Access. Each module stands on its own.
The question this module answers: What was embedded login, what replaces it, and how do you choose between redirect, embed and headless?
What it was for
Section titled “What it was for”Modules 1 and 2 kept the login on the site’s page. Module 3 moved it into the company’s own app. There was a third idea, in between: keep the customer on the company’s own website, and put a Salesforce login box right on the page.
That’s embedded login. Salesforce: “With Salesforce Identity Embedded Login, you can integrate Salesforce login capabilities into your own external website” (S13). It was built for two cases (S13):
- Log in before the site. The company’s website doesn’t support single sign-on, so the customer logs in with her Salesforce credentials in a box on the page.
- Log in before a purchase. She fills her shopping cart, then logs in before she pays.
The web developer added some tags and a script to the page; the Salesforce admin set up a site and an app behind it (S13). The login itself happened inside a hidden frame on the page, talking to the site in the background (S14). For the customer it felt like part of the company’s website.
Where it stands today
Section titled “Where it stands today”Salesforce’s own page now opens with a warning: “In Summer ‘24, Salesforce made Embedded Login disabled by default. We recommend that you use the web server flow, the user-agent flow, or another redirect-based OAuth 2.0 flow instead of Embedded Login” (S13). Of the two named, choose the web server flow: chapter 9 showed the user-agent flow is retiring on February 20, 2027.
The reason is how it worked. A login box from one website, Salesforce’s, sitting inside a page from another, the company’s, needs that box to keep its own cookies. Those are third-party cookies, and browsers now block or limit them to stop advertisers following people from site to site. Salesforce: “Embedded Login relies on third-party cookies, which are blocked or restricted in most browsers. And Embedded Login works only on Google Chrome and only as long as third-party cookies are allowed there by default” (S13). If the browser blocks them, the login button doesn’t appear at all (S14).
One thing to know if you read the documentation yourself: further down, the considerations page still has a Supported Browsers section listing five browsers, Internet Explorer 11 among them (S14). The warning at the top is the newer advice, and it’s the one to follow. Read the date on any page about embedded login, and expect older pages, blogs and courses to describe it as normal.
And two limits that were always there (S14). Registration and forgotten passwords happen on the site, not on the company’s page, and “when customers complete the password or self-registration page, they must navigate back to your website.” And anything with extra steps, MFA, a login flow or a Login Discovery page, can’t stay hidden inside the box.
If you have embedded login running today: it still works for customers whose browser allows it, which is fewer every year. Plan its replacement now, before the browsers decide the date for you.
Redirect, headless or embedded
Section titled “Redirect, headless or embedded”The exam’s question, COM-4, is “when to use embedded login.” The exam guide is aligned to Summer ‘23, before the change. So learn both answers:
- The exam’s answer, from before Summer ‘24: when a customer must log in on the company’s own web page, without being sent to another page, for example before a purchase (S13’s two use cases).
- Today’s answer: for new work, don’t. Choose one of the other two.
The real question underneath is the one this chapter keeps asking: who owns the login screen?
Redirect to the site’s login page. The company’s website sends her to the site’s login page, branded as in module 1, and she comes back signed in. Chapter 9’s web server flow, with PKCE, is the usual way. She leaves the company’s page for a moment, but she sees the same brand, and the company gets everything Salesforce’s page already does: every login option on it, discovery and passwordless (module 2), MFA, login flows, and Salesforce’s own protection against someone trying passwords. That’s why it’s Salesforce’s recommendation (S13), and the right default for most websites and apps.
Headless. The company’s own app owns every screen (module 3). Choose it when that really matters, say a mobile app that must never show a web page, and when there’s a team to build and look after those screens. And remember the price: the guard on every call is yours (S10).
Embedded login. For new work, no. For existing work, a plan to move to one of the other two.
A short way to decide:
- Can she be sent to the site’s page and back? Then redirect. Most of the time, she can.
- If not, can your team own every screen and its guard? Then headless.
- If neither, look again at question 1. The reason she “can’t” leave the page is usually a design choice, not a rule.
Test knowledge. In my experience, know what embedded login does and the use cases it was built for, because the exam guide still asks when to use it. Know too that it’s disabled by default since Summer ‘24, and that a redirect-based OAuth flow or headless identity replaces it.
What’s next
Section titled “What’s next”Module 5: what Customer 360 Identity is called now. The names, and one login for every brand and every org.
What an architect decides here
Section titled “What an architect decides here”- Redirect, headless or embedded, for each website and app.
- A replacement plan for any embedded login still running.
- Who looks after the screens, if you choose headless.
Explore
Section titled “Explore”- Embedded Login (opens in a new tab) (Salesforce Help; checked 2026-11-21)
- Embedded Login Considerations (opens in a new tab) (Salesforce Help; checked 2026-11-21)
