Add Microsoft as well-known auth provider (#369)
This commit is contained in:
parent
09e86e9005
commit
edac6ab48d
2 changed files with 11 additions and 0 deletions
|
|
@ -87,6 +87,15 @@ class LinkedIn(OAuth2):
|
||||||
super().__init__(id=id, scopes=scopes)
|
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):
|
class Notion(OAuth2):
|
||||||
"""Marks a tool as requiring Notion authorization."""
|
"""Marks a tool as requiring Notion authorization."""
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@ from arcade.core.auth import (
|
||||||
GitHub,
|
GitHub,
|
||||||
Google,
|
Google,
|
||||||
LinkedIn,
|
LinkedIn,
|
||||||
|
Microsoft,
|
||||||
Notion,
|
Notion,
|
||||||
OAuth2,
|
OAuth2,
|
||||||
Reddit,
|
Reddit,
|
||||||
|
|
@ -23,6 +24,7 @@ __all__ = [
|
||||||
"GitHub",
|
"GitHub",
|
||||||
"Google",
|
"Google",
|
||||||
"LinkedIn",
|
"LinkedIn",
|
||||||
|
"Microsoft",
|
||||||
"Notion",
|
"Notion",
|
||||||
"OAuth2",
|
"OAuth2",
|
||||||
"Reddit",
|
"Reddit",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue