Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/backend/base/langflow/services/auth/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
api_key_header = APIKeyHeader(name=API_KEY_NAME, scheme_name="API key header", auto_error=False)

MINIMUM_KEY_LENGTH = 32
AUTO_LOGIN_WARNING = "In v1.6 LANGFLOW_SKIP_AUTH_AUTO_LOGIN will be removed. Please update your authentication method."
AUTO_LOGIN_WARNING = "In v2.0, LANGFLOW_SKIP_AUTH_AUTO_LOGIN will be removed. Please update your authentication method."
AUTO_LOGIN_ERROR = (
"Since v1.5, LANGFLOW_AUTO_LOGIN requires a valid API key. "
"Set LANGFLOW_SKIP_AUTH_AUTO_LOGIN=true to skip this check. "
Expand Down
8 changes: 4 additions & 4 deletions src/backend/base/langflow/services/settings/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,17 @@ class AuthSettings(BaseSettings):
API_V1_STR: str = "/api/v1"

AUTO_LOGIN: bool = Field(
default=True, # TODO: Set to False in v1.6
default=True, # TODO: Set to False in v2.0
description=(
"Enable automatic login with default credentials. "
"SECURITY WARNING: This bypasses authentication and should only be used in development environments. "
"Set to False in production."
"Set to False in production. This will default to False in v2.0."
),
)
"""If True, the application will attempt to log in automatically as a super user."""
skip_auth_auto_login: bool = True
skip_auth_auto_login: bool = False
"""If True, the application will skip authentication when AUTO_LOGIN is enabled.
This will be removed in v1.6"""
This will be removed in v2.0"""

ENABLE_SUPERUSER_CLI: bool = Field(
default=True,
Expand Down
2 changes: 1 addition & 1 deletion src/backend/tests/unit/api/v1/test_mcp_projects.py
Original file line number Diff line number Diff line change
Expand Up @@ -678,5 +678,5 @@ async def test_mcp_longterm_token_fails_without_superuser():

# Now attempt to create long-term token -> expect HTTPException 400
async with get_db_service().with_session() as session:
with pytest.raises(HTTPException):
with pytest.raises(HTTPException, match="Auto login required to create a long-term token"):
await create_user_longterm_token(session)
1 change: 0 additions & 1 deletion src/backend/tests/unit/test_load_components.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import time

import pytest

from langflow.interface.components import aget_all_types_dict, import_langflow_components
from langflow.services.settings.base import BASE_COMPONENTS_PATH

Expand Down
Loading