Skip to content

Add agent as subject type for agentic OBO tokens#2988

Open
Thumimku wants to merge 4 commits intowso2-extensions:masterfrom
Thumimku:add_agent_type_for_OBO_token
Open

Add agent as subject type for agentic OBO tokens#2988
Thumimku wants to merge 4 commits intowso2-extensions:masterfrom
Thumimku:add_agent_type_for_OBO_token

Conversation

@Thumimku
Copy link
Copy Markdown
Contributor

@Thumimku Thumimku commented Dec 8, 2025

Proposed changes in this pull request

This pull request updates the logic for agent-related claims in access tokens to support first class support for subject type identifier for agentic OBO tokens.

This can be supported for additional policies that can be enforced in API gateways or resource servers when they are dealing with agent.

This is following similar approach where the AUT claim for token issued directly to agent has "Agent" value.

Copy link
Copy Markdown
Contributor

@wso2-engineering wso2-engineering bot left a comment

Choose a reason for hiding this comment

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

AI Agent Log Improvement Checklist

⚠️ Warning: AI-Generated Review Comments

  • The log-related comments and suggestions in this review were generated by an AI tool to assist with identifying potential improvements. Purpose of reviewing the code for log improvements is to improve the troubleshooting capabilities of our products.
  • Please make sure to manually review and validate all suggestions before applying any changes. Not every code suggestion would make sense or add value to our purpose. Therefore, you have the freedom to decide which of the suggestions are helpful.

✅ Before merging this pull request:

  • Review all AI-generated comments for accuracy and relevance.
  • Complete and verify the table below. We need your feedback to measure the accuracy of these suggestions and the value they add. If you are rejecting a certain code suggestion, please mention the reason briefly in the suggestion for us to capture it.
Comment Accepted (Y/N) Reason
#### Log Improvement Suggestion No: 1 Y
#### Log Improvement Suggestion No: 2 Y

@Thumimku Thumimku force-pushed the add_agent_type_for_OBO_token branch from 2de1b00 to 0fb87c5 Compare December 9, 2025 04:12
@codecov
Copy link
Copy Markdown

codecov bot commented Dec 9, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 56.10%. Comparing base (c4a1b5a) to head (8fb0714).

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #2988      +/-   ##
============================================
+ Coverage     56.08%   56.10%   +0.01%     
+ Complexity    10175     9889     -286     
============================================
  Files           676      676              
  Lines         58566    58573       +7     
  Branches      13842    13617     -225     
============================================
+ Hits          32849    32864      +15     
+ Misses        21101    21095       -6     
+ Partials       4616     4614       -2     
Flag Coverage Δ
unit 41.85% <100.00%> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Thumimku Thumimku force-pushed the add_agent_type_for_OBO_token branch from 05c2a9d to 8fb0714 Compare December 9, 2025 09:29
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.

1 participant