You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feat]: Expose programmatic authorization wiring for non-CDI runtimes #965
Is your feature request related to a problem? Please describe.
The A2A Java SDK already provides task-level authorization through TaskAuthorizationProvider and AuthorizationRequestHandlerDecorator.
This works well in CDI runtimes, where the container wires decorators automatically.
However, non-CDI integrations (for example Spring Boot) create DefaultRequestHandler and TaskStore programmatically, which makes it impossible to reuse the existing authorization flow because the framework-neutral constructors are not public.
Describe the solution you'd like
Expose the programmatic APIs by making these constructors public:
Additionally, it would be useful to allow AuthenticatedUser to carry optional attributes (e.g. roles, scopes, tenant, clientId) so integrations can pass richer identity context into TaskAuthorizationProvider.
Why
This would allow framework integrations to reuse the existing SDK authorization model without introducing framework-specific code or duplicating authorization logic.
Activity