Build, Buy or Borrow
Este conteúdo não está disponível em sua língua ainda.
Module 3 of 5 in the chapter Identity Strategy and Design Review, chapter 18 of Securing Salesforce: Identity and Access. Each module stands on its own.
The question this module answers: Should a company ever build its own login?
Don’t let this be a custom .NET app
Section titled “Don’t let this be a custom .NET app”When I teach single sign-on, there’s one line I say almost every time. You want industrial-grade identity management. Don’t let this be a custom .NET app.
It’s not about .NET. It’s about what happens when a company decides its login is just another web page its developers can write. A form, a table of usernames, a hash of the password, done in a sprint. It works on the day it ships. Then come the questions nobody planned for. How does someone reset a forgotten password safely? How does someone enrol a security key? How do you lock an account after ten wrong guesses, but not let an attacker lock everyone out on purpose? How do you take away access from someone who left yesterday, everywhere, in one place? Who’s watching for the login from a new country at three in the morning?
An industrial-grade identity provider has already answered all of those, and keeps answering them as the attacks change. Or, as I put it in class: with a real identity provider, the password recovery comes from the identity provider, and you can revoke access directly from the identity provider. One place.
What you’re really buying
Section titled “What you’re really buying”A dedicated identity provider isn’t a login page. It’s a set of jobs, done well and kept up to date:
- Passwords, stored safely, and reset without a phone call to the help desk.
- MFA, with every factor a person might use, and a way to enrol and recover them.
- Policies: which devices, which networks, which hours, which risk is too much.
- One place to switch people off, when they leave or when something’s wrong.
- Standard protocols, so every app speaks to it the same way. Salesforce’s own guidance: “For single sign-on (SSO), SAML 2.0 or OpenID Connect protocols are preferred,” with “strong IdP authentication” (S4).
- A record of who signed in, from where, and what failed.
Every one of those is a project if you build it yourself, and a target if you build it badly. Chapter 13’s incidents came through doors that were real and well-built, and attackers still found a way. A home-made door doesn’t start from there.
Buy, borrow or adapt
Section titled “Buy, borrow or adapt”So “build” is off the table. That leaves three good answers, and a strategy usually uses more than one.
Buy. A dedicated identity provider for the company’s own people: Microsoft Entra ID, Okta, Ping Identity, and others. If the company already has one, that’s usually the answer for staff (chapter 7). It knows them, it switches them off, it has their MFA.
Borrow. Salesforce as the identity provider. Salesforce already does every job on the list above for the people who log in to it. For people only Salesforce knows, like a small partner carrier or a customer on a site, it’s often the right identity provider for other apps too (chapter 7, module 6). Customer identity is a product of its own (chapter 15).
Adapt. Sometimes a company already has a login it can’t throw away: a legacy system that holds its customers’ accounts. Chapter 10 told the story of one that couldn’t speak SAML. The tempting answer is delegated authentication, where Salesforce sends each password to the old system to check. The better answer, in that story, was to teach the old system to be a real identity provider, sending signed SAML responses. Then Salesforce trusts it like any other, and its passwords never travel through Salesforce.
How to spot a home-made door
Section titled “How to spot a home-made door”In a design review (module 4), the home-made door rarely announces itself. Look for these:
- “Our app has its own login, and it sends users to Salesforce.” Ask how it proves who they are, and what it sends. If it’s a username and password, or a shared integration user acting for everyone, you’ve found one.
- A username-password flow in Login History, where Salesforce itself recommends “blocking user-agent and username-password flows” (chapter 16, module 2). Salesforce’s guidance for integrations is “never username-password flows” (S4), and the flow retires on 2027-02-20 (chapter 5).
- Delegated authentication to a custom web service, with no plan to replace it.
- Passwords in a custom object. It happens.
- No answer to “who switches them off?” for some group on the strategy page.
None of these is a crime. Each is a decision someone made under time pressure, and each one is easier to change before the next audit than after the next incident.
What’s next
Section titled “What’s next”Module 4: reviewing an identity design. How to take someone else’s strategy page, and find what’s wrong with it.
What an architect decides here
Section titled “What an architect decides here”- Buy, borrow or adapt, for each group. Never build.
- Which legacy logins become real identity providers, and by when.
- Every home-made door, found, written down, and given a date.
Explore
Section titled “Explore”- Trust (opens in a new tab) (Salesforce Architects, Well-Architected; checked 2026-11-21)
- Single Sign-On Use Cases (opens in a new tab) (Salesforce Help; checked 2026-11-21)
