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

[auth][client] make client accept api key via api_key parameter and PHOENIX_API_KEY env var #4056

Closed
Tracked by #3433
axiomofjoy opened this issue Jul 28, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@axiomofjoy
Copy link
Contributor

axiomofjoy commented Jul 28, 2024

If one exists, add the api key as a header to the httpx client inside phoenix.Client so the header is automatically included in all requests.

Looks like there are several ways this is done in practice:

  • Authorization: Bearer or a custom authorization scheme, e.g., Authorization: API-Key
  • custom header, e.g., Arize-Phoenix-API-Key
  • X-API-Key, although this format seems to be deprecated

See:

@axiomofjoy axiomofjoy changed the title [auth][client] make client accept api key via argument and environment variable [auth][client] make client accept api key via api_key parameter and PHOENIX_API_KEY env var Jul 28, 2024
@dosubot dosubot bot added the enhancement New feature or request label Jul 28, 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

2 participants