2.5 KiB
2.5 KiB
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
-
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."
-
ACS URL Change Impact
- Migration from:
- Introduced mismatch between Destination and Recipient.
-
SAML Field Mismatches
- Destination updated, Recipient initially not updated.
- Audience remained constant but may not match new Okta app context.
-
Signature Considerations
- Response is signed.
- Assertion is NOT signed.
- Potential mismatch if Okta requires signed assertions.
-
Okta Validation Failure
- Error: "Unable to validate incoming SAML Assertion"
- Indicates failure AFTER request reached Okta.
-
Geo Blocking Consideration (India)
- Ruled out as primary issue.
- Reason: request reached Okta and failed validation (not blocked at network layer).
-
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
- Transport (POST vs redirect)
- SAML XML validity
- Endpoint alignment (ACS / Recipient / Destination)
- Signature + certificate
- Okta configuration
- 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
Recommended Next Steps
- Confirm Okta app Audience URI for new ACS route
- Confirm whether signed assertions are required
- Validate certificate alignment
- 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