Metadata-Version: 2.3
Name: mlflow-oauth-keycloak-auth
Version: 0.0.2
Summary: Package for dealing with JWT tokens from Keycloak in a MLflow - oauth2-proxy setup.
Project-URL: Homepage, https://github.com/SmithyW/mlflow-oauth-keycloak-auth
Project-URL: Issues, https://github.com/SmithyW/mlflow-oauth-keycloak-auth/issues
Author-email: SmithyW <github@smiwit.de>
License-File: LICENCE
Keywords: keycloak,mlflow,oauth2
Classifier: Development Status :: 4 - Beta
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Dist: python-dotenv
Requires-Dist: requests
Description-Content-Type: text/markdown

# mlflow-oauth-keycloak-auth
The purpose of this package is to enable the use of the [MLflow "fluent" tracking API](https://mlflow.org/docs/latest/python_api/mlflow.html) with upstream oauth2-proxy.


The configuration is done exclusively via environment variables.
All of the following variables are required and can be found in the provided `.env.example` file.

| Variable              | Value                       | Purpose  |
| --------------------- |:---------------------------:| -----------------:|
| KMTA_CLIENT_ID        | Keycloak Client_ID          |   authentication  |
| KMTA_CLIENT_SECRET    | Keycloak Client_Secret      |   authentication  |
| KMTA_USERNAME         | Your Keycloak Username      |   authentication  |
| KMTA_PASSWORD         | Your Keycloak User Password |   authentication  |
| KMTA_TOKEN_URI        | Your Keycloak User Password |   authentication  |
| KMTA_USERINFO_URI     | Your Keycloak User Password |   check token     |


The `KMTA_TOKEN_URI` and `KMTA_USERINFO_URI` are the token_endpoint and userinfo_endpoint found when accessing `<keycloak_address>/realms/<realm>/.well-known/openid-configuration`.

This package expects a file named `.env`, but can be customized by creating a custom config.
