Skip to content

Improved Authn logging - #126

Open
AustinSMueller wants to merge 5 commits into
3.7.0from
authn-logging
Open

Improved Authn logging#126
AustinSMueller wants to merge 5 commits into
3.7.0from
authn-logging

Conversation

@AustinSMueller

Copy link
Copy Markdown
Contributor

Overview

N/A

Change Details (Specifics)

N/A

Related Ticket(s)

N/A

- return user friendly error strings when login response is not HTTP code 200
- created a user friendly error for when the login or user info response is HTTP code 200 but invalid
- enhanced logging for when an HTTP 200 response is received from the login endpoints but contains problems
expand unit testing coverage

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds NIH authentication response validation, diagnostic logging, and related tests.

Changes:

  • Validates and parses NIH token/userinfo responses.
  • Adds error logging for failed token and IDP handling.
  • Expands HTTP and IDP test coverage.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
apps/authn/services/nih-auth.js Adds response validation and logging.
apps/authn/idps/nih.js Logs IDP resolution failures.
apps/authn/test/nih-auth.http.test.js Tests NIH HTTP response handling.
apps/authn/test/nih.idp.test.js Tests IDP failure logging.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread apps/authn/services/nih-auth.js Outdated
Comment thread apps/authn/services/nih-auth.js Outdated
Comment thread apps/authn/idps/nih.js Outdated
- only log specified fields returned by the AuthN API requests, other fields will be logged as being present but without logging the actual values

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Comment thread apps/authn/util/safe-response-log.js
Comment thread apps/authn/services/nih-auth.js
@AustinSMueller
AustinSMueller requested a review from n2iw August 24, 2026 17:03
@AustinSMueller AustinSMueller changed the title Authn logging Improved Authn logging Aug 24, 2026
@AustinSMueller
AustinSMueller marked this pull request as ready for review August 24, 2026 17:03
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