[Feat] Create a sample that demonstrates in-task authentication (secondary credentials)

Open
#410 3 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
java

Research direction

Review the existing security sample in the a2a-samples repo (java/agents/magic_8_ball_security) and the A2A specification section on in-task authentication. The new sample should be added to the same repository, demonstrating how an A2A server agent requests and uses secondary credentials. Start by understanding the A2A protocol's credential flow and the existing SDK classes for handling authentication.

Written by the indexing model from the issue text.

Description

We recently added a security sample that shows how an A2A client can send a message to a secured A2A server agent (see https://github.com/a2aproject/a2a-samples/tree/main/samples/java/agents/magic_8_ball_security).

It would be good to have a sample that demonstrates the case where an A2A server agent requires credentials for a different system or resource (e.g., to access a specific tool on behalf of the user that requires its own auth). See the "In-Task Authentication (Secondary Credentials) section here for more details.

The new sample should be added to the a2a-samples repo.

Dominant language
Java
Stars
514
Forks
200
Avg merge
1d 2h
Merged PRs (30d)
53

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from a2aproject/a2a-java

All issues in a2aproject/a2a-java

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.