Skip to content

Update auth_saml.py with logging info for troubleshooting#1387

Draft
nickviola wants to merge 2 commits intodevelopfrom
NV-CRASM-2906-add-saml-logging
Draft

Update auth_saml.py with logging info for troubleshooting#1387
nickviola wants to merge 2 commits intodevelopfrom
NV-CRASM-2906-add-saml-logging

Conversation

@nickviola
Copy link
Contributor

🗣 Description

Add logging to assist with troubleshooting Auth SAML handshake.

💭 Motivation and context

Add logging for assisting with troubleshooting.

🧪 Testing

Check backend logs on auth flow

✅ Pre-approval checklist

  • This PR has an informative and human-readable title.
  • Changes are limited to a single goal - eschew scope creep!
  • All future TODOs are captured in issues, which are referenced in code comments.
  • All relevant type-of-change labels have been added.
  • I have read the CONTRIBUTING document.
  • These code changes follow cisagov code standards.
  • All relevant repo and/or project documentation has been updated to reflect the changes in this PR.
  • Tests have been added and/or modified to cover the changes in this PR.
  • All new and existing tests pass.

@nickviola nickviola self-assigned this Dec 5, 2025
@nickviola nickviola marked this pull request as ready for review December 5, 2025 17:01
aloftus23
aloftus23 previously approved these changes Dec 5, 2025
errors = auth.get_errors()
if errors or not auth.is_authenticated():
is_auth = auth.is_authenticated()
last_error_reason = auth.get_last_error_reason()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the error.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

get_last_error_reason deosn't seem to exist

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just pushed ce81e01 to fix.

@schmelz21 schmelz21 marked this pull request as draft December 5, 2025 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants