README.md
1 # Basic authentication example 2 3 This example demonstrates the authentication and authorization feature of MLflow. 4 5 To run this example, 6 7 1. Start the tracking server 8 ```shell 9 mlflow server --app-name=basic-auth 10 ``` 11 2. Go to `http://localhost:5000/signup` and register two users: 12 - `(user_a, password_a)` 13 - `(user_b, password_b)` 14 3. Run the script 15 ```shell 16 python auth.py 17 ``` 18 Expected output: 19 ``` 20 2023/05/02 14:03:58 INFO mlflow.tracking.fluent: Experiment with name 'experiment_a' does not exist. Creating a new experiment. 21 {} 22 API request to endpoint /api/2.0/mlflow/runs/create failed with error code 403 != 200. Response body: 'Permission denied' 23 ```