Hoppa till innehåll

Build, Buy or Borrow

Det här innehållet är inte tillgängligt på ditt språk än.

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?

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.

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.

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.

Build, buy or borrow Build, buy or borrow, and who each one serves. Build your own login, a custom .NET app: never; it serves no one safely, because every job becomes a project, and a target. Buy a dedicated identity provider: for the company's own staff, with Entra ID, Okta and others, because it knows them and switches them off, chapter 7. Borrow Salesforce as the identity provider: for people only Salesforce knows, like small partners and customers, because it already does the jobs, chapters 7 and 15. Adapt a legacy login: for accounts a company can't move yet, made into a real identity provider, because it sends signed SAML and no passwords are sent to it, chapter 10. Footnote: SAML 2.0 or OpenID Connect preferred, Salesforce Well-Architected, checked 2026-11-21. {"author": "Steve Simpson", "blueprint": "1.0.0", "builder": "standard 1.60.0", "built": "2026-11-25", "id": "DGM-IAM-IST-03", "rights": "\u00a9 2026 Twinshark LLC. All rights reserved.", "template": "cells 0.5.0", "theme": "stevetecharc 1.5.0"} THE CHOICE WHO IT SERVES WHY Build your own login "a custom .NET app" No one, safely Every job becomes a project and a target Buy a dedicated identity provider The company's own staff Entra ID, Okta and others It knows them and switches them off · ch 7 Borrow Salesforce as the identity provider People only Salesforce knows small partners, customers It already does the jobs ch 7, 15 Adapt a legacy login Accounts you can't move yet made a real identity provider It sends signed SAML no passwords sent to it · ch 10 serves because serves because serves because serves because SAML 2.0 or OpenID Connect preferred: Salesforce Well-Architected, checked 2026-11-21. HOW TO READ IT a good answer never © 2026 Twinshark LLC · stevetecharc.com
Click to enlarge

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.

Module 4: reviewing an identity design. How to take someone else’s strategy page, and find what’s wrong with it.

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