Skip to content

Conversation

@kabir
Copy link
Collaborator

@kabir kabir commented Jul 29, 2025

It was introduced in a2aproject/a2a-java#206

if (callContextFactory.isUnsatisfied()) {
User user;

if (securityContext.getUserPrincipal() != null) {
Copy link
Contributor

Choose a reason for hiding this comment

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

should this be == null instead of != null since the user is being set to UnauthenticatedUser.INSTANCE below


@Override
public String getUsername() {
return request.getUserPrincipal().getName();
Copy link
Contributor

Choose a reason for hiding this comment

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

Should securityContext.getUserPrincipal() be used here instead?

@kabir kabir force-pushed the align-with-a2a-java branch from 62473e4 to 98da0ae Compare July 29, 2025 15:03
@kabir kabir merged commit 7fa5e03 into wildfly-extras:main Jul 29, 2025
2 checks passed
@kabir kabir deleted the align-with-a2a-java branch September 4, 2025 11:30
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