{"id":24049,"library":"mlflow-oidc-auth","title":"MLflow OIDC Auth","description":"OIDC authentication plugin for MLflow tracking server. Version 7.0.3, requires Python >=3.10. Provides OAuth2/OIDC integration for MLflow, supports token-based auth, group-based permission filtering, and MLflow's REST API auth middleware. Active development with regular releases.","status":"active","version":"7.0.3","language":"python","source_language":"en","source_url":"https://github.com/perdasilva/mlflow-oidc-auth","tags":["mlflow","oidc","auth","flask","authentication"],"install":[{"cmd":"pip install mlflow-oidc-auth","lang":"bash","label":"Standard installation"}],"dependencies":[],"imports":[{"wrong":"from mlflow_oidc_auth import create_oidc_app","symbol":"create_oidc_app","correct":"from mlflow_oidc_auth import create_oidc_app"}],"quickstart":{"code":"import os\nfrom mlflow_oidc_auth import create_oidc_app\nfrom flask import Flask\n\napp = Flask(__name__)\napp.secret_key = os.environ.get('SECRET_KEY', 'changeme')\n\noidc = create_oidc_app(\n    app,\n    issuer=os.environ.get('OIDC_ISSUER', 'https://example.com/auth/realms/myrealm'),\n    client_id=os.environ.get('OIDC_CLIENT_ID', 'my-client'),\n    client_secret=os.environ.get('OIDC_CLIENT_SECRET', ''),\n    token_endpoint=os.environ.get('OIDC_TOKEN_ENDPOINT', ''),\n    userinfo_endpoint=os.environ.get('OIDC_USERINFO_ENDPOINT', ''),\n)\n\nif __name__ == '__main__':\n    app.run(debug=True)","lang":"python","description":"Basic Flask app with OIDC auth. Requires environment variables for issuer, client ID, and secret."},"warnings":[{"fix":"Use `from mlflow_oidc_auth import create_oidc_app` instead of `from mlflow_oidc_auth.oidc import ...`.","message":"Version 7.x changed the import path from `mlflow_oidc_auth.oidc` to top-level `mlflow_oidc_auth`. Old imports will fail.","severity":"breaking","affected_versions":">=7.0.0"},{"fix":"Omit `token_endpoint` and `userinfo_endpoint` if your issuer supports OIDC discovery (well-known/openid-configuration).","message":"The `token_endpoint` parameter is deprecated and may be removed in future; use the `token_endpoint` from the OIDC discovery document.","severity":"deprecated","affected_versions":">=5.0.0"},{"fix":"Set `app.secret_key` before invoking `create_oidc_app`.","message":"Session secret must be set before `create_oidc_app` is called; otherwise session encryption fails silently.","severity":"gotcha","affected_versions":"all"},{"fix":"Install MLflow with the `auth` extra: `pip install mlflow[auth]`.","message":"The plugin requires MLflow to be installed with extras `[auth]` or in `server` mode. Without MLflow, imports succeed but runtime fails.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'3.10':15 '7.0.3':12 'activ':38 'api':35 'auth':3,25,36,45 'authent':5,47 'base':24,28 'develop':39 'filter':30 'flask':46 'group':27 'group-bas':26 'integr':18 'middlewar':37 'mlflow':1,8,20,32,43 'oauth2/oidc':17 'oidc':2,4,44 'permiss':29 'plugin':6 'provid':16 'python':14 'regular':41 'releas':42 'requir':13 'rest':34 'server':10 'support':21 'token':23 'token-bas':22 'track':9 'version':11","created_at":"2026-05-01T08:11:01.403092+00:00","updated_at":"2026-05-01T08:11:01.403092+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\nImportError: cannot import name 'create_oidc_app' from 'mlflow_oidc_auth' (/tmp/tmp6iyvs17y/venv/lib/python3.12/site-packages/mlflow_oidc_auth/__init__.py)"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"7.3.1","cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/mlflow-oidc/mlflow-oidc-auth","docs":"https://github.com/mlflow-oidc/mlflow-oidc-auth/tree/main/docs/","changelog":null,"pypi":"https://pypi.org/project/mlflow-oidc-auth/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["auth-security","ai-ml","aws"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"import_fail","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-07-10","install_tag":null}}