Skip to content

Commit 7879582

Browse files
author
Faxbot Agent
committed
P2-02: Add identity/sqlalchemy manifest; fix shim import paths to align with app.* package. No behavior change.
1 parent f49ce98 commit 7879582

File tree

3 files changed

+22
-5
lines changed

3 files changed

+22
-5
lines changed

api/app/plugins/identity/base.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
from dataclasses import dataclass
1313
from typing import Any, Dict, List, Optional
1414

15-
from ..base import FaxbotPlugin
1615

1716

1817
@dataclass
@@ -48,7 +47,7 @@ class AuthResult:
4847
message: Optional[str] = None
4948

5049

51-
class IdentityPlugin(FaxbotPlugin, ABC):
50+
class IdentityPlugin(ABC):
5251
plugin_type: str = "identity"
5352

5453
@abstractmethod
@@ -85,4 +84,3 @@ async def validate_session(self, token: str) -> Optional[Session]:
8584
@abstractmethod
8685
async def revoke_session(self, session_id: str) -> None:
8786
...
88-

api/app/plugins/identity/shims/sqlalchemy/plugin.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"""
99

1010
from typing import Any, Dict, Optional
11-
from ....plugins.identity.base import IdentityPlugin, User, Group, Session, AuthResult # type: ignore
11+
from app.plugins.identity.base import IdentityPlugin, User, Group, Session, AuthResult # type: ignore
1212

1313

1414
class Plugin(IdentityPlugin):
@@ -42,4 +42,3 @@ async def revoke_session(self, session_id: str) -> None: # pragma: no cover - s
4242

4343
def get_plugin_class(): # pragma: no cover - factory optional
4444
return Plugin
45-
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"id": "sqlalchemy",
3+
"name": "SQLAlchemy Identity",
4+
"version": "0.1.0",
5+
"type": "identity",
6+
"scope": "global",
7+
"traits": {
8+
"user_store": true,
9+
"session_store": true,
10+
"csrf_supported": true
11+
},
12+
"config_schema": {
13+
"type": "object",
14+
"properties": {
15+
"database_url": { "type": "string" }
16+
},
17+
"additionalProperties": true
18+
}
19+
}
20+

0 commit comments

Comments
 (0)