Testing ACR & AMR with Salesforce

See how Salesforce reacts to different authentication context classes and methods by giving each persona its own ACR and AMR values.

Prerequisites

Complete the Salesforce SSO setup guide first. You need a working SSO login before testing ACR/AMR.

1. Set ACR & AMR on personas

  1. In your realm's directory, edit a persona.
  2. Set ACR to a context class URI, e.g.:
    • urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport — password over TLS
    • urn:oasis:names:tc:SAML:2.0:ac:classes:MobileTwoFactorContract — mobile 2FA
  3. Set AMR to one or more methods, e.g. pwd, otp, mfa.
  4. Create a second persona with different ACR/AMR values so you can compare.

2. Log in with each persona

  1. Trigger SSO from Salesforce and pick the first persona.
  2. Check whether Salesforce accepted the login, and look at the login history (SetupLogin History) for the authentication method recorded.
  3. Repeat with the second persona and compare.

3. What to look for

start testing →