Metadata-Version: 2.4
Name: kobil-auth
Version: 1.0.0
Summary: KOBIL OIDC (OpenID Connect) authentication helper for Python.
License: MIT
Project-URL: Repository, https://github.com/uveysservetoglu/kobil-sdks
Keywords: kobil,oidc,oauth2,authentication,openid-connect
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: kobil-core>=1.0

# kobil-auth

KOBIL OIDC (OpenID Connect) authentication helper for Python.

```bash
pip install kobil-auth
```

```python
from kobil.auth import AuthClient

auth = AuthClient(
    authorization_endpoint="https://idp.../auth",
    token_endpoint="https://idp.../token",
    client_id="...",
    client_secret="...",
    scope="openid profile email",
)

url = auth.build_authorization_url("https://app.example.com/callback")
tokens = auth.exchange_code_for_token(code, "https://app.example.com/callback")
```

Failures raise `kobil.auth.KobilAuthError` (subclass of `kobil.core.KobilError`).

## License

MIT
