diff --git a/README.md b/README.md index cdb621e1..ba083acc 100644 --- a/README.md +++ b/README.md @@ -87,7 +87,7 @@ This connects to the Arcade Cloud Engine (`api.arcade-ai.com`) with all pre-buil For example, try: -``` +```text User (dev@arcade-ai.com): > star the ArcadeAI/arcade-ai repo on Github ``` @@ -96,7 +96,7 @@ Arcade AI will prompt you to authorize with GitHub and will star the [ArcadeAI/a You'll see: -``` +```text Assistant (gpt-4o): I starred the ArcadeAI/arcade-ai repo on Github for you! ``` diff --git a/arcade/arcade/core/auth.py b/arcade/arcade/core/auth.py index ad024932..cb95cd95 100644 --- a/arcade/arcade/core/auth.py +++ b/arcade/arcade/core/auth.py @@ -29,6 +29,12 @@ class OAuth2(ToolAuthorization): """The scope(s) needed for the authorized action.""" +class Discord(OAuth2): + """Marks a tool as requiring Discord authorization.""" + + provider_id: str = "discord" + + class Google(OAuth2): """Marks a tool as requiring Google authorization.""" diff --git a/arcade/arcade/sdk/auth/__init__.py b/arcade/arcade/sdk/auth/__init__.py index fb3c43f2..2c09ffed 100644 --- a/arcade/arcade/sdk/auth/__init__.py +++ b/arcade/arcade/sdk/auth/__init__.py @@ -1,4 +1,5 @@ from arcade.core.auth import ( + Discord, GitHub, Google, LinkedIn, @@ -11,6 +12,7 @@ from arcade.core.auth import ( ) __all__ = [ + "Discord", "GitHub", "Google", "LinkedIn",