Zum Inhalt springen

Embedded Login

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

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?

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.

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.

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?

Three ways to put a login in front of a customer Three ways to put a login in front of a customer. Redirect to the site's login page, with an OAuth flow such as the web server flow, chapter 9: the login screen is owned by Salesforce, the page, its checks and every login option; choose it for most websites and apps, Salesforce's recommendation. Headless, where your app calls Salesforce's APIs, module 3: the screen is owned by you, every screen and the guard on every call; choose it when your app must own every screen, and a team can look after them. Embedded login, a Salesforce login box on your web page: the screen is owned by Salesforce, inside your page, and it needs third-party cookies; not for new work, off by default since Summer '24. Marked green: Salesforce's advice today. Marked amber: only to keep what already runs, while you replace it. Footnote: Salesforce Help, checked 2026-11-06: embedded login disabled by default since Summer '24; a redirect-based OAuth 2.0 flow recommended instead. {"author": "Steve Simpson", "blueprint": "1.0.0", "builder": "standard 1.58.0", "built": "2026-11-06", "id": "DGM-IAM-LEX-04", "rights": "\u00a9 2026 Twinshark LLC. All rights reserved.", "template": "cells 0.5.0", "theme": "stevetecharc 1.4.0"} THE WAY IN WHO OWNS THE LOGIN SCREEN CHOOSE IT WHEN Redirect to the site's login page an OAuth flow, such as the web server flow · ch 9 Salesforce the page, its checks, every login option Most websites and apps Salesforce's recommendation Headless your app calls Salesforce's APIs · module 3 You every screen, and the guard on every call Your app must own every screen and a team can look after them Embedded login a Salesforce login box on your web page Salesforce, inside your page it needs third-party cookies Not for new work off by default since Summer '24 screen owned by choose for screen owned by choose for screen owned by choose for Salesforce Help, checked 2026-11-06: embedded login disabled by default since Summer '24; a redirect-based OAuth 2.0 flow recommended instead. HOW TO READ IT Salesforce's advice today only to keep what already runs, while you replace it © 2026 Twinshark LLC · stevetecharc.com
Click to enlarge

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:

  1. Can she be sent to the site’s page and back? Then redirect. Most of the time, she can.
  2. If not, can your team own every screen and its guard? Then headless.
  3. 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.

Module 5: what Customer 360 Identity is called now. The names, and one login for every brand and every org.

  • 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.