Skip to content

[#989] Improve how empty req.user is handled#999

Merged
benbrown merged 3 commits intomainfrom
southworks/add/undefined-user-identity-warning
Mar 13, 2026
Merged

[#989] Improve how empty req.user is handled#999
benbrown merged 3 commits intomainfrom
southworks/add/undefined-user-identity-warning

Conversation

@ceciliaavila
Copy link
Copy Markdown
Collaborator

Fixes #989

Description

This PR adds a warning before creating an anonymous connector client to let customers know that the request is not authenticated.
Additionally, it adds a comment in the process function to encourage customers using the authorizeJWT middleware.

Testing

This image shows the warning when there's no identity set in the request.
image

Copilot AI review requested due to automatic review settings March 13, 2026 14:18
@ceciliaavila ceciliaavila requested review from benbrown and removed request for Copilot March 13, 2026 14:20
@benbrown benbrown merged commit 8fae7ee into main Mar 13, 2026
7 checks passed
@benbrown benbrown deleted the southworks/add/undefined-user-identity-warning branch March 13, 2026 15:18
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.

Improve how empty req.user is handled

2 participants