Metadata-Version: 2.4
Name: oauth-haystack
Version: 1.0.0
Summary: Haystack integration for oauth
Project-URL: Documentation, https://github.com/deepset-ai/haystack-core-integrations/tree/main/integrations/oauth#readme
Project-URL: Issues, https://github.com/deepset-ai/haystack-core-integrations/issues
Project-URL: Source, https://github.com/deepset-ai/haystack-core-integrations/tree/main/integrations/oauth
Author-email: deepset GmbH <info@deepset.ai>
License-Expression: Apache-2.0
License-File: LICENSE.txt
Keywords: authentication,haystack,oauth
Classifier: Development Status :: 4 - Beta
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Python: >=3.10
Requires-Dist: haystack-ai>=2.23.0
Requires-Dist: httpx>=0.28.0
Description-Content-Type: text/markdown

# oauth-haystack

[![PyPI - Version](https://img.shields.io/pypi/v/oauth-haystack.svg)](https://pypi.org/project/oauth-haystack)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/oauth-haystack.svg)](https://pypi.org/project/oauth-haystack)

- [Changelog](https://github.com/deepset-ai/haystack-core-integrations/blob/main/integrations/oauth/CHANGELOG.md)

---

## Contributing

Refer to the general [Contribution Guidelines](https://github.com/deepset-ai/haystack-core-integrations/blob/main/CONTRIBUTING.md).

The integration test resolves a token against a real identity provider and is skipped unless the required environment variables are set. To run it locally, export:

- `OAUTH_TOKEN_URL` — the provider's OAuth 2.0 token endpoint.
- `OAUTH_CLIENT_ID` — the OAuth client identifier.
- `OAUTH_REFRESH_TOKEN` — a valid refresh token for that client.
- `OAUTH_CLIENT_SECRET` — *(optional)* the client secret for confidential clients; omit it for public clients.
- `OAUTH_SCOPES` — *(optional)* space-separated scopes to request.

Then run:

```bash
hatch run test:integration
```
