Skip to content

Commit

Permalink
fix: fix Models UI (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
kharkevich authored Apr 10, 2024
2 parents 08395a1 + 2c4a490 commit 68cc684
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 2 additions & 3 deletions mlflow_oidc_auth/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def authenticate_request_basic_auth() -> Union[Authorization, Response]:
_set_is_admin(True)
_logger.debug("User %s authenticated", username)
return True
if store.authenticate_user(username, password):
if store.authenticate_user(username.lower(), password):
_set_username(username)
_logger.debug("User %s authenticated", username)
return True
Expand Down Expand Up @@ -331,7 +331,7 @@ def callback():
_set_is_admin(False)

# Store the user data in the session.
_set_username(email)
_set_username(email.lower())
# Create user due to auth
create_user()
return redirect(url_for("oidc_ui"))
Expand Down Expand Up @@ -454,7 +454,6 @@ def get_models():
"name": model.name,
"tags": model.tags,
"description": model.description,
"latest_versions": model.latest_versions,
"aliases": model.aliases,
}
for model in registered_models
Expand Down
1 change: 0 additions & 1 deletion web-ui/src/app/shared/interfaces/models-data.interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { PermissionEnum } from 'src/app/core/configs/permissions';
export interface ModelModel {
aliases: Record<string, unknown>;
description: string;
latest_versions: any[];
name: string;
tags: Record<string, unknown>;
}
Expand Down

0 comments on commit 68cc684

Please sign in to comment.