department-of-veterans-affairs / va.gov-team

Public resources for building on and in support of VA.gov. Visit complete Knowledge Hub:
https://depo-platform-documentation.scrollhelp.site/index.html
282 stars 203 forks source link

capture invalid SSOe SAML Response payload #12485

Closed ericbuckley closed 4 years ago

ericbuckley commented 4 years ago

Debugging invalid SAML Responses from eauth.va.gov has been difficult because it's not always logged on their side. When a validation issue is raises on line 57, we should persist the value to the PersonalInformationLog table, so we can debug.

Note: that table is set up to store PII, so no need to obfuscate any data in the response before saving.

ericbuckley commented 4 years ago

@jholton / @benniemosher just an FYI on the process if you ever need to lookup a SAML Response payload

I ran a test on staging to verify that the invalid payload would be captured. It worked, but the process to view it was cumbersome.