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

75 lines
2.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 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**
- Migration from:
- Old: https://dev-auth.cmghomeloans.com/sso/saml2/0oar2b66xc84rpDmE1d7
- New: https://dev-cmg.oktapreview.com/.../sso/saml
- Introduced mismatch between Destination and Recipient.
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
## Recommended Next Steps
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