Add Attio wellknown auth class (#769)
Add Attio to the wellknown OAuth2 provider classes so toolkits can use Attio(scopes=[...]) instead of OAuth2(id=..., scopes=[...]). --------- Co-authored-by: Eric Gustin <eric@arcade.dev>
This commit is contained in:
parent
7472b18106
commit
b928f52445
6 changed files with 18 additions and 5 deletions
|
|
@ -51,6 +51,15 @@ class Atlassian(OAuth2):
|
|||
super().__init__(id=id, scopes=scopes)
|
||||
|
||||
|
||||
class Attio(OAuth2):
|
||||
"""Marks a tool as requiring Attio authorization."""
|
||||
|
||||
provider_id: str = "attio"
|
||||
|
||||
def __init__(self, *, id: Optional[str] = None, scopes: Optional[list[str]] = None): # noqa: A002
|
||||
super().__init__(id=id, scopes=scopes)
|
||||
|
||||
|
||||
class ClickUp(OAuth2):
|
||||
"""Marks a tool as requiring ClickUp authorization."""
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
[project]
|
||||
name = "arcade-core"
|
||||
version = "4.2.3"
|
||||
version = "4.3.0"
|
||||
description = "Arcade Core - Core library for Arcade platform"
|
||||
readme = "README.md"
|
||||
license = { text = "MIT" }
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
from arcade_core.auth import (
|
||||
Asana,
|
||||
Atlassian,
|
||||
Attio,
|
||||
ClickUp,
|
||||
Discord,
|
||||
Dropbox,
|
||||
|
|
@ -26,6 +27,7 @@ from arcade_core.auth import (
|
|||
__all__ = [
|
||||
"Asana",
|
||||
"Atlassian",
|
||||
"Attio",
|
||||
"ClickUp",
|
||||
"Discord",
|
||||
"Dropbox",
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|||
|
||||
[project]
|
||||
name = "arcade-mcp-server"
|
||||
version = "1.15.2"
|
||||
version = "1.16.0"
|
||||
description = "Model Context Protocol (MCP) server framework for Arcade.dev"
|
||||
readme = "README.md"
|
||||
authors = [{ name = "Arcade.dev" }]
|
||||
|
|
@ -21,7 +21,7 @@ classifiers = [
|
|||
]
|
||||
requires-python = ">=3.10"
|
||||
dependencies = [
|
||||
"arcade-core>=4.2.2,<5.0.0",
|
||||
"arcade-core>=4.3.0,<5.0.0",
|
||||
"arcade-serve>=3.2.0,<4.0.0",
|
||||
"arcade-tdk>=3.4.0,<4.0.0",
|
||||
"arcadepy>=1.5.0",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
from arcade_core.auth import (
|
||||
Asana,
|
||||
Atlassian,
|
||||
Attio,
|
||||
ClickUp,
|
||||
Discord,
|
||||
Dropbox,
|
||||
|
|
@ -26,6 +27,7 @@ from arcade_core.auth import (
|
|||
__all__ = [
|
||||
"Asana",
|
||||
"Atlassian",
|
||||
"Attio",
|
||||
"ClickUp",
|
||||
"Discord",
|
||||
"Dropbox",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
[project]
|
||||
name = "arcade-tdk"
|
||||
version = "3.4.0"
|
||||
version = "3.5.0"
|
||||
description = "Arcade TDK - Toolkit Development Kit for building Arcade tools"
|
||||
readme = "README.md"
|
||||
license = { text = "MIT" }
|
||||
|
|
@ -16,7 +16,7 @@ classifiers = [
|
|||
"Programming Language :: Python :: 3.13",
|
||||
]
|
||||
requires-python = ">=3.10"
|
||||
dependencies = ["arcade-core>=4.1.0,<5.0.0", "pydantic>=2.7.0"]
|
||||
dependencies = ["arcade-core>=4.3.0,<5.0.0", "pydantic>=2.7.0"]
|
||||
|
||||
[project.optional-dependencies]
|
||||
dev = [
|
||||
|
|
|
|||
Loading…
Reference in a new issue