Add Hubspot OAuth class (#372)

This commit is contained in:
Renato Byrro 2025-04-21 17:55:45 -03:00 committed by GitHub
parent 8f1dd30960
commit ea14b898b4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 11 additions and 0 deletions

View file

@ -78,6 +78,15 @@ class Google(OAuth2):
super().__init__(id=id, scopes=scopes)
class Hubspot(OAuth2):
"""Marks a tool as requiring Hubspot authorization."""
provider_id: str = "hubspot"
def __init__(self, *, id: Optional[str] = None, scopes: Optional[list[str]] = None): # noqa: A002
super().__init__(id=id, scopes=scopes)
class LinkedIn(OAuth2):
"""Marks a tool as requiring LinkedIn authorization."""

View file

@ -4,6 +4,7 @@ from arcade.core.auth import (
Dropbox,
GitHub,
Google,
Hubspot,
LinkedIn,
Microsoft,
Notion,
@ -23,6 +24,7 @@ __all__ = [
"Dropbox",
"GitHub",
"Google",
"Hubspot",
"LinkedIn",
"Microsoft",
"Notion",