Fastapi Auth Partner
fastapi_auth_partner · OCA/rest-framework
Health
62/100
fair
-
Security25/25No findings
-
Activity20/25Last human commit 8 months ago
-
Required by5/250 modules depend on it
-
Maturity12/25In 2 Odoo series since 16.0
Heuristic over the facts below, not an audit · How it's computed
Required by
0
Modules depending on it
External deps
12 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.1 MB
Module directory on disk
Code analysis
0 migration notes
6 models
5 views
0 HTTP endpoints
Description
This module is the FastAPI implementation of auth_partner it provides all the routes to manage the authentication of partners.
Dependencies
- Odoo dependencies
- Python dependencies
- itsdangerous, extendable-pydantic>=1.2.0, pydantic>=2.0.0, a2wsgi>=1.10.6, fastapi, fastapi-openapi-overrides, parse-accept-language, python-multipart, ujson, extendable>=0.0.4, pyjwt, requests
- System dependencies
- None
- Required by
- None
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 5
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
auth_directory_view_form |
auth.directory | form | Inherits auth_partner.auth_directory_view_form | |
auth_partner_view_form |
auth.partner | form | Inherits auth_partner.auth_partner_view_form | |
fastapi_endpoint_view_form |
fastapi.endpoint | form | Inherits fastapi.fastapi_endpoint_form_view | |
wizard_auth_partner_impersonate_view_form |
wizard.auth.partner.impersonate | form | New | |
wizard_auth_partner_reset_password_view_form |
wizard.auth.partner.reset.password | form | Inherits auth_partner.wizard_auth_partner_reset_password_view_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 6
New fields (4)
-
cookie_durationIntegerdefault=525600help='In minute, default 525600 minutes => 1 year'required=True -
cookie_secret_keyChardefault=<expr>groups='base.group_system'help='The secret key used to sign the cookie'required=True -
fastapi_endpoint_idsOne2many → fastapi.endpointstring='FastAPI Endpoints' args: 'fastapi.endpoint', 'directory_id' -
sliding_sessionBoolean
-
action_regenerate_cookie_secret_key(self)
New fields (0)
No new fields.
Public methods (1)-
local_impersonate(self)Local impersonate for dev mode
New fields (2)
-
directory_idMany2one → auth.directoryargs: 'auth.directory' -
endpoint_idMany2one → fastapi.endpointrequired=True args: 'fastapi.endpoint'
-
new(self, vals, **kwargs)
New fields (4)
-
appSelectionondelete={'demo': 'cascade'}selection_add=[('demo', 'Demo Endpoint')] -
demo_auth_methodSelectionselection_add=[('auth_partner', 'Partner Auth')]string='Authentication method' -
directory_idMany2one → auth.directoryargs: 'auth.directory' -
is_auth_partnerBooleancompute='_compute_is_auth_partner'help='Technical field to know if the auth method is partner'
No public methods.
New fields (3)
-
auth_directory_idMany2one → auth.directoryrelated='auth_partner_id.directory_id' args: 'auth.directory' -
auth_partner_idMany2one → auth.partnerrequired=True args: 'auth.partner' -
fastapi_endpoint_idMany2one → fastapi.endpointrequired=True args: 'fastapi.endpoint'
-
action_impersonate(self)
New fields (1)
-
fastapi_endpoint_idMany2one → fastapi.endpointargs: 'fastapi.endpoint'
-
action_reset_password(self)
Loading…