Files
conversation-history/Work/CMG/SAML Debugging/3834 Mortgage Integration SAML Troubleshooting.md

2.5 KiB
Raw Permalink Blame History

3834 Bank CMG – Mortgage Integration SAML Troubleshooting Log

Summary

This note captures a full troubleshooting session between CMG and Q2 regarding SAML SSO failures during mortgage integration.

Key Issues Identified

  1. Double-wrapped SAMLResponse

    • HTML auto-submit page was Base64 encoded instead of raw SAML XML.
    • Caused Okta error: "The incoming message is not a valid SAMLResponse."
  2. ACS URL Change Impact

  3. SAML Field Mismatches

    • Destination updated, Recipient initially not updated.
    • Audience remained constant but may not match new Okta app context.
  4. Signature Considerations

    • Response is signed.
    • Assertion is NOT signed.
    • Potential mismatch if Okta requires signed assertions.
  5. Okta Validation Failure

    • Error: "Unable to validate incoming SAML Assertion"
    • Indicates failure AFTER request reached Okta.
  6. Geo Blocking Consideration (India)

    • Ruled out as primary issue.
    • Reason: request reached Okta and failed validation (not blocked at network layer).
  7. Post-SSO Application Errors

    • Once SSO succeeded, app showed UI errors.
    • Root cause shifted to downstream APIs (404 / 403 / 500 possibilities).

Diagnostic Framework

Layered Debug Approach

  1. Transport (POST vs redirect)
  2. SAML XML validity
  3. Endpoint alignment (ACS / Recipient / Destination)
  4. Signature + certificate
  5. Okta configuration
  6. Network / policy

Key Checks

  • SAMLResponse must start with: PHNhbWxwOlJlc3BvbnNl
  • Destination == Recipient == ACS URL
  • Audience matches Okta SP Entity ID
  • Certificate matches Okta config
  • Assertion signed if required

Final Likely Causes (Current State)

  • Audience mismatch due to new routed ACS URL
  • Assertion signing requirement mismatch
  • Certificate mismatch
  1. Confirm Okta app Audience URI for new ACS route
  2. Confirm whether signed assertions are required
  3. Validate certificate alignment
  4. Pull exact Okta System Log error details

One-Line Root Cause Summary

Failure occurs during SAML assertion validation due to mismatch between SAML payload and Okta application configuration following ACS URL change.


Notes

  • SSO itself eventually succeeded → confirms earlier issues resolved
  • Remaining issues shifted to application/API layer