Skip to content
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

Allow requiring API key for calling direct client #1175

Open
ilmari-h opened this issue Dec 17, 2024 · 0 comments
Open

Allow requiring API key for calling direct client #1175

ilmari-h opened this issue Dec 17, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@ilmari-h
Copy link

I would like to be able to require an API key for communicating with my agent via the direct client rest API.
I did not find a built in way to do this.

I would propose adding an optional DirectClientOptions parameter to the DirectClient constructor that contains property API-key.
The direct client would then return 401 to any request that does not have the header Authorization: Bearer YOUR_API_KEY

I will gladly implement this myself if it makes sense as a feature to others

@ilmari-h ilmari-h added the enhancement New feature or request label Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant