Skip to content

feat: Introduce identifying used authz token getters #221

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
May 12, 2025

Conversation

anubhav756
Copy link
Contributor

This PR adds the feature in identify_required_authn_params helper to determine which of the provided auth token getters are actively used to satisfy a tool's authorization requirements (as defined by the authRequired key in its manifest).

This is a foundational step towards future validation in ToolboxTool.add_auth_token_getters, which will ensure no configured auth token getters remain unused, thereby preventing potential misconfigurations.

@anubhav756 anubhav756 self-assigned this May 6, 2025
@anubhav756 anubhav756 requested a review from a team as a code owner May 6, 2025 07:49
Base automatically changed from anubhav-error to main May 12, 2025 13:42
Post adding the feature of adding client-level auth headers (#178), we have the logic for creating an auth header, from the given auth token getter name, in 3 different places.

This PR unifies all of that logic into a single helper to improve maintenance, and make it easier to change the way we add suffix/prefix, and reduces WET code.
This PR adds the feature in `identify_required_authn_params` helper to determine which of the provided auth token getters are actively used to satisfy a tool's authorization requirements (as defined by the `authRequired` key in its manifest).

This is a foundational step towards future validation in `ToolboxTool.add_auth_token_getters`, which will ensure no configured auth token getters remain unused, thereby preventing potential misconfigurations.
@anubhav756 anubhav756 force-pushed the anubhav-authz-required branch from c7dbc3c to 8149616 Compare May 12, 2025 14:05
@anubhav756 anubhav756 merged commit 5d49936 into main May 12, 2025
19 checks passed
@anubhav756 anubhav756 deleted the anubhav-authz-required branch May 12, 2025 14:16
@release-please release-please bot mentioned this pull request May 12, 2025
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