bitwarden serve service (#1895)
This commit is contained in:
@@ -157,6 +157,7 @@ class Settings(BaseSettings):
|
||||
SKYVERN_AUTH_BITWARDEN_MASTER_PASSWORD: str | None = None
|
||||
SKYVERN_AUTH_BITWARDEN_ORGANIZATION_ID: str | None = None
|
||||
|
||||
BITWARDEN_SERVER: str = "http://localhost"
|
||||
BITWARDEN_SERVER_PORT: int = 8002
|
||||
|
||||
SVG_MAX_LENGTH: int = 100000
|
||||
|
||||
@@ -33,6 +33,9 @@ from skyvern.forge.sdk.schemas.credentials import (
|
||||
PasswordCredential,
|
||||
)
|
||||
|
||||
LOG = structlog.get_logger()
|
||||
BITWARDEN_SERVER_BASE_URL = f"{settings.BITWARDEN_SERVER}:{settings.BITWARDEN_SERVER_PORT or 8002}"
|
||||
|
||||
|
||||
class BitwardenItemType(IntEnum):
|
||||
LOGIN = 1
|
||||
@@ -84,11 +87,6 @@ def get_list_response_item_from_bitwarden_item(item: dict) -> CredentialItem:
|
||||
raise BitwardenGetItemError(f"Unsupported item type: {item['type']}")
|
||||
|
||||
|
||||
LOG = structlog.get_logger()
|
||||
|
||||
BITWARDEN_SERVER_BASE_URL = f"http://localhost:{settings.BITWARDEN_SERVER_PORT or 8002}"
|
||||
|
||||
|
||||
def is_valid_email(email: str | None) -> bool:
|
||||
if not email:
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user