Add Microsoft as well-known auth provider (#369)

This commit is contained in:
Eric Gustin 2025-04-18 13:26:08 -08:00 committed by GitHub
parent 09e86e9005
commit edac6ab48d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 11 additions and 0 deletions

View file

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

View file

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