Design identity for a benefits portal: sign-in, matching to existing constituents, and authorised representatives.
Model answer
Sign-in: OIDC with the state or national digital identity (or Salesforce external identity with MFA if none); identity proofing level matched to risk.
Linking: on first login, match verified attributes plus a reference (case number or one-time code to known contact details) to the person account; uncertain matches go to staff.
Representatives: relationship with scope (view notices, upload documents, apply), expiry, evidence (power of attorney), and revocation; enforced in sharing and Apex with sharing / user mode.
Security: step-up MFA for bank detail changes; session timeouts with warnings; audit of representative actions.
โ Key points to hit
โ Red-flag answers
- Auto-linking by name and date of birth only
- Representatives with full access forever
โช Follow-ups
A representative's authority is revoked. What happens?
End-date the relationship, remove access immediately, log it and notify both parties.
What if the IdP returns no date of birth?
Fall back to reference-number and one-time-code matching, or staff verification.