Skip to content

Commit

Permalink
fix: revert validation for Slack provider to work with oauth (#2765)
Browse files Browse the repository at this point in the history
  • Loading branch information
talboren authored Dec 5, 2024
1 parent bba635c commit 7c83bd4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion keep/parser/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def _parse_workflow(
self._load_providers_config(
tenant_id, context_manager, workflow, providers_file, workflow_providers
)
# Parsethe actions (from workflow, actions yaml and database)
# Parse the actions (from workflow, actions yaml and database)
self._load_actions_config(
tenant_id, context_manager, workflow, actions_file, workflow_actions
)
Expand Down
5 changes: 2 additions & 3 deletions keep/providers/slack_provider/slack_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,19 @@
from keep.exceptions.provider_exception import ProviderException
from keep.providers.base.base_provider import BaseProvider
from keep.providers.models.provider_config import ProviderConfig
from keep.validation.fields import HttpsUrl


@pydantic.dataclasses.dataclass
class SlackProviderAuthConfig:
"""Slack authentication configuration."""

webhook_url: HttpsUrl = dataclasses.field(
webhook_url: str = dataclasses.field(
metadata={
"required": True,
"description": "Slack Webhook Url",
"validation": "https_url",
"sensitive": True,
},
default="",
)
access_token: str = dataclasses.field(
metadata={
Expand Down

0 comments on commit 7c83bd4

Please sign in to comment.