Files
docs/py-jwt/mcp/modules/jwtlib.models.common.json
Vishesh 'ironeagle' Bangotra 9929f05334 refactor: serve MCP bundles under <name>/mcp with nginx guard; rename core->mcp_server
- collect.py: copy repo MCP bundles to ROOT/<name>/mcp (instead of ROOT/mcp/<name>); add nginx location guard to deny /<name>/mcp/
- config.py: bundle roots now point to <repo>/mcp and standards/mcp for static bundles
- Rename core.py -> mcp_server.py and update imports in main.py and registry.py
- Dockerfile: per-repo MCP COPYs under /app/<name>/mcp, drop blog copy; add ports 8008/8009 in .drone.yml
- Restore standards/mcp/libraries.json from git for registry server
2026-10-11 23:37:46 +05:30

64 lines
2.5 KiB
JSON

{
"module": "jwtlib.models.common",
"content": {
"path": "jwtlib.models.common",
"docstring": "# Summary\n\nCommon Pydantic mixins for authentication models.\n\nThis module provides reusable mixins for identity, password, and\naccount state. These mixes ensure consistency across internal\npersistence models and public-facing projection models.",
"objects": {
"IdentityMixin": {
"name": "IdentityMixin",
"kind": "class",
"path": "jwtlib.models.common.IdentityMixin",
"signature": null,
"docstring": "Mixin for entities with a username and email.\n\nAttributes:\n username (str):\n Unique username used for authentication and display.\n email (Optional[EmailStr]):\n Primary email address associated with the account.",
"members": {
"username": {
"name": "username",
"kind": "attribute",
"path": "jwtlib.models.common.IdentityMixin.username",
"signature": null,
"docstring": null
},
"email": {
"name": "email",
"kind": "attribute",
"path": "jwtlib.models.common.IdentityMixin.email",
"signature": null,
"docstring": null
}
}
},
"PasswordMixin": {
"name": "PasswordMixin",
"kind": "class",
"path": "jwtlib.models.common.PasswordMixin",
"signature": null,
"docstring": "Mixin for entities with a raw password field.\n\nAttributes:\n password (str):\n User password (minimum 6 characters).",
"members": {
"password": {
"name": "password",
"kind": "attribute",
"path": "jwtlib.models.common.PasswordMixin.password",
"signature": null,
"docstring": null
}
}
},
"ActiveStateMixin": {
"name": "ActiveStateMixin",
"kind": "class",
"path": "jwtlib.models.common.ActiveStateMixin",
"signature": null,
"docstring": "Mixin for entities with an active status flag.\n\nAttributes:\n is_active (bool):\n Indicates whether the account is active and allowed to\n authenticate.",
"members": {
"is_active": {
"name": "is_active",
"kind": "attribute",
"path": "jwtlib.models.common.ActiveStateMixin.is_active",
"signature": null,
"docstring": null
}
}
}
}
}
}