Checkpoint challenge
Это содержимое пока не доступно на вашем языке.
Original, hands-on practice. Never modeled on actual exam questions. This closes the chapter Watching the Door: Troubleshooting and Audit, chapter 16 of Securing Salesforce: Identity and Access.
Scenario
Section titled “Scenario”Your two lab orgs work. Priya signs in at the identity provider org and lands in the service provider org (chapters 6 and 7). She can also log in through the auth provider (chapter 10). The command-line tool from chapter 9 gets refresh tokens, with rotation on (chapter 13).
Now you break them, on purpose, one at a time. You make each break with your eyes open, then you put on a different hat: the admin who gets the call, knows nothing about the change, and has to find it. Then you fix it, and write down what you saw. At the end, you have the one page chapter 6 asked for, built from failures you’ve actually seen.
This is the safest place you’ll ever meet these failures. Two free orgs, nothing real at stake, and you know the answer before you start. The next time, it’ll be a real login on a real morning, and you’ll have seen the marks before.
Requirements
Section titled “Requirements”- Four breaks, one at a time, each fixed before the next.
- Each one found the way module 1 says: who, since when, where it’s written down.
- The evidence kept: for each break, what the user saw and where it showed.
- The runbook: one page, every door you’ve built, the symptom, where it shows, the cause, the fix.
Constraints
Section titled “Constraints”- Lab orgs only. No company data, nothing personal.
- One break at a time. Fix each one, and check Priya can log in again, before you make the next. Two breaks at once teach the wrong lesson.
- Keep the back door open. Before you start, log in as the admin in both orgs through each org’s own login page, with Salesforce’s own login, a password and MFA, in a separate browser or a private window (chapter 4, module 5). That admin is the user who bypasses every extra rule you’ve added: single sign-on, login policies, anything that could lock people out. Never break anything that admin uses.
- Write down the original value before you change it, so you can put it back exactly.
- Captured assertions and tokens stay on your machine. Delete the captures when you’re done.
Your task
Section titled “Your task”Before you start
Section titled “Before you start”1. Get in first. In a private window, log in to the service provider org as the admin, through its My Domain login page with ?login if you need it. Keep that window open for the whole practice. That’s module 1’s first question, answered before anything breaks.
2. Install a SAML tracer in the browser you’ll use as Priya (module 3). Check that Priya can log in through single sign-on, and that you can see the SAML response in the tracer.
3. Open your pairs page from chapters 6 and 7. You’ll need it.
Break 1: an Entity ID
Section titled “Break 1: an Entity ID”4. Break it. In the service provider org, open the single sign-on setting for the identity provider org. Copy the Issuer value somewhere safe. Change one character at the end: add a /, or change a letter. Save.
5. Be Priya. As Priya, sign in at the identity provider org and try to reach the service provider org. She doesn’t get in.
6. Find it. As the admin, ask module 1’s questions. Who? Try another user if you have one: everyone fails. Since when? Open the Setup Audit Trail (module 5): your change is there, with the time. Where is it written down? Open Login History (module 2), filtered to Priya: the status is Issuer Mismatched (chapter 4, module 6). Then paste the assertion from the tracer into the SAML Assertion Validator (chapter 6, module 7) and read what it says about the issuer.
7. Fix it. Put the original Issuer back. Priya logs in.
8. Write it down in your runbook: symptom, where it showed, cause, fix.
Break 2: a Federation ID
Section titled “Break 2: a Federation ID”9. Break it. In the service provider org, open Priya’s user record. Her Federation ID is E10442. Change it to e10442: the same letters, a different case. Save.
10. Be Priya. She signs in at the identity provider org, and doesn’t get in to the service provider org.
11. Find it. Who? Only Priya: every other single sign-on user still gets in, if you have one. Since when? The Setup Audit Trail may not show a change to one user’s field; her user record’s own history might, if field history is on for it. Where? Login History for Priya: a single sign-on failure. This course hasn’t yet recorded the exact status Salesforce shows when no user has the Federation ID: look it up in the status list (module 2). In the tracer, open the assertion’s Subject: E10442. Compare it with her record. “A difference in case or whitespace will cause login to fail” (module 1).
12. Fix it, and write it down. Put E10442 back. Add a line to the runbook, and a question for the real world: where do Federation IDs come from, and does anyone type them by hand?
Break 3: a callback URL
Section titled “Break 3: a callback URL”13. Break it. In the identity provider org, open the external client app the service provider org’s auth provider uses (chapter 10). Copy its Callback URL. Add a / at the end. Save.
14. Be Priya. On the service provider org’s login page, choose the auth provider’s button. The login stops before she’s asked anything.
15. Find it. Who? Everyone who uses that button; single sign-on through SAML still works. One door, so look at the door’s own error. In the browser’s address bar, or the developer tools’ network view, find the error Salesforce sent back: redirect_uri_mismatch (module 3). This course hasn’t yet tested whether, for an auth provider, it shows in the URL or on an error page, so check both. Then look at the identity provider org’s side: the app’s callback URL against the one the auth provider sends.
16. Fix it, and write it down. Exact means exact.
Break 4: a token that worked yesterday
Section titled “Break 4: a token that worked yesterday”17. Get a working token. Run chapter 9’s device flow again as your test user, as chapter 13’s practice did in its step 5, and copy the refresh_token. Use it once from the terminal to get an access token. It works, and with rotation on, you get a new refresh token: keep that one.
18. Break it. As the admin, take the access back, as chapter 13’s step 7 did: on the OAuth Usage page, find the Command-line tool and revoke your test user’s access. (Or try the other way, from module 5: remove the user’s session on the Session Management page.)
19. Be the tool. From the terminal, use the newest refresh token again.
20. Find it. The token endpoint answers with an error in JSON: invalid_grant, with a description (module 3). This course hasn’t yet recorded the exact wording for a revoked refresh token. Who? One app, one user. Since when? The moment you revoked it. Where? The answer the app got. In a real company, the next question is who revoked it, and why. Module 5’s Session Management and the Setup Audit Trail are where you’d start.
21. Fix it, and write it down. The fix is a new authorization: run the device flow again, and the user approves the tool again. Write down who must be told when a token is revoked, so an app doesn’t fail without anyone noticing.
The runbook
Section titled “The runbook”22. Write one page. For every door your lab has (SAML both ways, the auth provider, each app), a row: the symptom, where it shows, the usual cause, the fix. Start from your four breaks, then add module 4’s other failures. At the top: how to get in through the back door, and who owns the identity provider. That’s the page chapter 6 asked for.
Extra: see the events (optional)
Section titled “Extra: see the events (optional)”23. Look at the add-on’s view. A Developer Edition org shows every event type, kept one day (module 5). On the same day as your breaks, open the Event Log File Browser in Setup, or query LoginEvent, and find your failed logins. This course hasn’t yet checked which login events a Developer Edition org shows. This is what a company with Shield or the Event Monitoring add-on sees, kept for much longer.
Discussion
Section titled “Discussion”- Which break was quickest to find, and why? Usually the one with an exact error name: Issuer Mismatched or
redirect_uri_mismatch. The Federation ID was slower, because nothing in Setup changed for everyone. - Which question did the most work? For breaks 1 and 3, “since when?” and the Setup Audit Trail. For break 2, “who?”: only Priya.
- What would have stopped each one? A change made from the pairs page, not by hand (1); Federation IDs from the source of truth, never typed (2); callback URLs copied, not retyped (3); a rule that whoever revokes a token tells the app’s owner (4).
- What if the back door hadn’t been open? For break 1, if the admin used single sign-on, nobody could have fixed it from inside Salesforce. My rule: if any mechanism could lock people out, by mistake or because it fails, keep at least one user, usually on one profile, maybe a couple of users, who can bypass it and use Salesforce’s own login. Not no authentication: Salesforce’s own, locked down with MFA and IP restrictions. In a small org of ten users, that extra license may not be worth it. In a larger or critical org, it is.
Check your lab
Section titled “Check your lab”- Priya logs in by single sign-on, and through the auth provider, after every fix; the command-line tool works after a new device flow.
- The Issuer, Federation ID and callback URL are exactly what they were.
- The admin still has a password, MFA, and no single sign-on requirement.
- Captured assertions and tokens deleted from your machine.
- The runbook exists, and someone other than you could follow it.
Exam objectives exercised
Section titled “Exam objectives exercised”- IDC-5: troubleshoot common single sign-on failure points, SAML and OAuth.
- TPI-5: auditing and monitoring approaches, and tools to diagnose issues.
- AMB-3: tools to audit and verify user activity during and after login.
Explore
Section titled “Explore”- Troubleshoot SAML Assertion Errors (opens in a new tab) (Salesforce Help; checked 2026-11-21)
- OAuth 2.0 Authorization Errors (opens in a new tab) (Salesforce Help; checked 2026-11-21)
- Monitor Login History (opens in a new tab) (Salesforce Help; checked 2026-11-21)
