This example demonstrates the authentication and authorization feature of MLflow.
To run this example,
- Start the tracking server
mlflow ui --app-name=basic-auth
- Go to
http://localhost:5000/signup
and register two users:(user_a, password_a)
(user_b, password_b)
- Run the script
Expected output:
python auth.py
2023/05/02 14:03:58 INFO mlflow.tracking.fluent: Experiment with name 'experiment_a' does not exist. Creating a new experiment. {} API request to endpoint /api/2.0/mlflow/runs/create failed with error code 403 != 200. Response body: 'Permission denied'