Fastapi Auth Partner

fastapi_auth_partner
REPOSITORY
REPOSITORYOCA/rest-framework
GIT
GIThttps://github.com/OCA/rest-framework.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/rest-framework/tree/18.0/fastapi_auth_partner
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYUncategorized
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Akretion
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Akretion
COMMITTERS
COMMITTERSSébastien BEAU, Weblate, OCA-git-bot, oca-ci
WEBSITE
WEBSITEhttps://github.com/OCA/rest-framework
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:30:05
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/queue:
    - queue_job
OCA/rest-framework:
    - extendable_fastapi
    - fastapi
    - extendable
    - auth_partner
OCA/server-env:
    - server_environment
OCA/web-api:
    - endpoint_route_handler
odoo/odoo:
    - auth_signup
    - base_setup
    - base
    - web
    - mail
    - bus
    - web_tour
    - html_editor
    - base_sparse_field
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES itsdangerous
extendable-pydantic>=1.2.0
pydantic>=2.0.0
a2wsgi>=1.10.6
fastapi>=0.110.0
parse-accept-language
python-multipart
ujson
extendable>=0.0.4
pyjwt
requests
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This module is the FastAPI implementation of
[auth_partner](../auth_partner) it provides all the routes to manage the
authentication of partners.

Code Analysis

Views touched (5)
XML IDNameModelTypeStatus
auth_directory_view_form auth.directory header Inherits auth_partner.auth_directory_view_form
auth_partner_view_form auth.partner button Inherits auth_partner.auth_partner_view_form
fastapi_endpoint_view_form fastapi.endpoint span 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 group Inherits auth_partner.wizard_auth_partner_reset_password_view_form
Models touched (6)

New fields (4)
  • cookie_duration Integer
    default=525600 help='In minute, default 525600 minutes => 1 year' required=True
  • cookie_secret_key Char
    default=<expr> groups='base.group_system' help='The secret key used to sign the cookie' required=True
  • fastapi_endpoint_ids One2many → fastapi.endpoint
    string='FastAPI Endpoints' args: 'fastapi.endpoint', 'directory_id'
  • sliding_session Boolean
Public methods (1)
  • 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_id Many2one → auth.directory
    args: 'auth.directory'
  • endpoint_id Many2one → fastapi.endpoint
    required=True args: 'fastapi.endpoint'
Public methods (1)
  • new(self, vals, **kwargs)

New fields (4)
  • app Selection
    ondelete={'demo': 'cascade'} selection_add=[('demo', 'Demo Endpoint')]
  • demo_auth_method Selection
    selection_add=[('auth_partner', 'Partner Auth')] string='Authentication method'
  • directory_id Many2one → auth.directory
    args: 'auth.directory'
  • is_auth_partner Boolean
    compute='_compute_is_auth_partner' help='Technical field to know if the auth method is partner'
Public methods (0)

No public methods.

New fields (3)
  • auth_directory_id Many2one → auth.directory
    related='auth_partner_id.directory_id' args: 'auth.directory'
  • auth_partner_id Many2one → auth.partner
    required=True args: 'auth.partner'
  • fastapi_endpoint_id Many2one → fastapi.endpoint
    required=True args: 'fastapi.endpoint'
Public methods (1)
  • action_impersonate(self)

New fields (1)
  • fastapi_endpoint_id Many2one → fastapi.endpoint
    args: 'fastapi.endpoint'
Public methods (1)
  • action_reset_password(self)
REPOSITORY
REPOSITORYOCA/rest-framework
GIT
GIThttps://github.com/OCA/rest-framework.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/rest-framework/tree/16.0/fastapi_auth_partner
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYUncategorized
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Akretion
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Akretion
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, Simone Rubino, oca-ci, Florian Mounier
WEBSITE
WEBSITEhttps://github.com/OCA/rest-framework
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:53:47
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/queue:
    - queue_job
OCA/rest-framework:
    - extendable_fastapi
    - fastapi
    - extendable
    - auth_partner
OCA/server-env:
    - server_environment
OCA/web-api:
    - endpoint_route_handler
odoo/odoo:
    - auth_signup
    - base_setup
    - base
    - web
    - mail
    - bus
    - web_tour
    - base_sparse_field
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES itsdangerous
extendable-pydantic>=1.2.0
pydantic>=2.0.0
a2wsgi>=1.10.6
fastapi>=0.110.0
parse-accept-language
python-multipart
ujson
extendable>=0.0.4
pyjwt
requests
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (5)
XML IDNameModelTypeStatus
auth_directory_view_form auth.directory header Inherits auth_partner.auth_directory_view_form
auth_partner_view_form auth.partner button Inherits auth_partner.auth_partner_view_form
fastapi_endpoint_view_form fastapi.endpoint span 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 group Inherits auth_partner.wizard_auth_partner_reset_password_view_form
Models touched (6)

New fields (4)
  • cookie_duration Integer
    default=525600 help='In minute, default 525600 minutes => 1 year' required=True
  • cookie_secret_key Char
    default=<expr> groups='base.group_system' help='The secret key used to sign the cookie' required=True
  • fastapi_endpoint_ids One2many → fastapi.endpoint
    string='FastAPI Endpoints' args: 'fastapi.endpoint', 'directory_id'
  • sliding_session Boolean
Public methods (1)
  • 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_id Many2one → auth.directory
    args: 'auth.directory'
  • endpoint_id Many2one → fastapi.endpoint
    required=True args: 'fastapi.endpoint'
Public methods (1)
  • new(self, vals, **kwargs)

New fields (4)
  • app Selection
    ondelete={'demo': 'cascade'} selection_add=[('demo', 'Demo Endpoint')]
  • demo_auth_method Selection
    selection_add=[('auth_partner', 'Partner Auth')] string='Authentication method'
  • directory_id Many2one → auth.directory
    args: 'auth.directory'
  • is_auth_partner Boolean
    compute='_compute_is_auth_partner' help='Technical field to know if the auth method is partner'
Public methods (0)

No public methods.

New fields (3)
  • auth_directory_id Many2one → auth.directory
    related='auth_partner_id.directory_id' args: 'auth.directory'
  • auth_partner_id Many2one → auth.partner
    required=True args: 'auth.partner'
  • fastapi_endpoint_id Many2one → fastapi.endpoint
    required=True args: 'fastapi.endpoint'
Public methods (1)
  • action_impersonate(self)

New fields (1)
  • fastapi_endpoint_id Many2one → fastapi.endpoint
    args: 'fastapi.endpoint'
Public methods (1)
  • action_reset_password(self)