Skip to content

Added AppInsightsJwtDecoder.java, which logs JWT validation failures …#2870

Open
dinesh1patel wants to merge 8 commits into
masterfrom
jwt-validation-failure-logging-to-app-insights
Open

Added AppInsightsJwtDecoder.java, which logs JWT validation failures …#2870
dinesh1patel wants to merge 8 commits into
masterfrom
jwt-validation-failure-logging-to-app-insights

Conversation

@dinesh1patel

Copy link
Copy Markdown
Contributor

JIRA link (if applicable)

https://tools.hmcts.net/jira/browse/CCD-6137

Change description

Added AppInsightsJwtDecoder.java, which logs JWT validation failures at WARN and sends a warning trace to App Insights with failure type, message, and validation error details.
Updated SecurityConfiguration.java to wrap the existing NimbusJwtDecoder.
Added AppInsights.trackTrace(...) support in AppInsights.java.
Added unit coverage for invalid signature-style failures and validation-error details.

Does this PR introduce a breaking change? (check one with "x")

[ ] Yes
[X] No

…at WARN and sends a warning trace to App Insights with failure type, message, and validation error details
@hmcts-jenkins-a-to-c hmcts-jenkins-a-to-c Bot requested a deployment to preview May 11, 2026 11:56 Abandoned
@hmcts-jenkins-a-to-c hmcts-jenkins-a-to-c Bot requested a deployment to preview May 11, 2026 13:33 Abandoned

@aktaskaan aktaskaan 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.

lgtm

@markdathornehmcts markdathornehmcts 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.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants