1- .. image :: https://odoo-community.org/readme-banner-image
2- :target: https://odoo-community.org/get-involved?utm_source=readme
3- :alt: Odoo Community Association
4-
51====================
62Fastapi Auth Partner
73====================
@@ -17,23 +13,24 @@ Fastapi Auth Partner
1713.. |badge1 | image :: https://img.shields.io/badge/maturity-Beta-yellow.png
1814 :target: https://odoo-community.org/page/development-status
1915 :alt: Beta
20- .. |badge2 | image :: https://img.shields.io/badge/license -AGPL--3-blue.png
16+ .. |badge2 | image :: https://img.shields.io/badge/licence -AGPL--3-blue.png
2117 :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
2218 :alt: License: AGPL-3
2319.. |badge3 | image :: https://img.shields.io/badge/github-OCA%2Frest--framework-lightgray.png?logo=github
24- :target: https://github.com/OCA/rest-framework/tree/16 .0/fastapi_auth_partner
20+ :target: https://github.com/OCA/rest-framework/tree/18 .0/fastapi_auth_partner
2521 :alt: OCA/rest-framework
2622.. |badge4 | image :: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
27- :target: https://translation.odoo-community.org/projects/rest-framework-16 -0/rest-framework-16 -0-fastapi_auth_partner
23+ :target: https://translation.odoo-community.org/projects/rest-framework-18 -0/rest-framework-18 -0-fastapi_auth_partner
2824 :alt: Translate me on Weblate
2925.. |badge5 | image :: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
30- :target: https://runboat.odoo-community.org/builds?repo=OCA/rest-framework&target_branch=16 .0
26+ :target: https://runboat.odoo-community.org/builds?repo=OCA/rest-framework&target_branch=18 .0
3127 :alt: Try me on Runboat
3228
3329|badge1 | |badge2 | |badge3 | |badge4 | |badge5 |
3430
35- This module is the FastAPI implementation of `auth_partner <../auth_partner >`_
36- it provides all the routes to manage the authentication of partners.
31+ This module is the FastAPI implementation of
32+ `auth_partner <../auth_partner >`__ it provides all the routes to manage
33+ the authentication of partners.
3734
3835**Table of contents **
3936
@@ -43,45 +40,48 @@ it provides all the routes to manage the authentication of partners.
4340Usage
4441=====
4542
46- First you have to add the auth router to your FastAPI endpoint and the authentication dependency to your app dependencies:
43+ First you have to add the auth router to your FastAPI endpoint and the
44+ authentication dependency to your app dependencies:
4745
48- .. code-block :: python
46+ .. code :: python
4947
50- from odoo.addons.fastapi import dependencies
51- from odoo.addons.fastapi_auth_partner.dependencies import (
52- auth_partner_authenticated_partner,
53- )
54- from odoo.addons.fastapi_auth_partner.routers.auth import auth_router
48+ from odoo.addons.fastapi import dependencies
49+ from odoo.addons.fastapi_auth_partner.dependencies import (
50+ auth_partner_authenticated_partner,
51+ )
52+ from odoo.addons.fastapi_auth_partner.routers.auth import auth_router
5553
56- class FastapiEndpoint (models .Model ):
57- _inherit = " fastapi.endpoint"
54+ class FastapiEndpoint (models .Model ):
55+ _inherit = " fastapi.endpoint"
5856
59- def _get_fastapi_routers (self ):
60- if self .app == " myapp" :
61- return [
62- auth_router,
63- ]
64- return super ()._get_fastapi_routers()
57+ def _get_fastapi_routers (self ):
58+ if self .app == " myapp" :
59+ return [
60+ auth_router,
61+ ]
62+ return super ()._get_fastapi_routers()
6563
66- def _get_app_dependencies_overrides (self ):
67- res = super ()._get_app_dependencies_overrides()
68- if self .app == " myapp" :
69- res.update(
70- {
71- dependencies.authenticated_partner_impl: auth_partner_authenticated_partner,
72- }
73- )
74- return res
64+ def _get_app_dependencies_overrides (self ):
65+ res = super ()._get_app_dependencies_overrides()
66+ if self .app == " myapp" :
67+ res.update(
68+ {
69+ dependencies.authenticated_partner_impl: auth_partner_authenticated_partner,
70+ }
71+ )
72+ return res
7573
76- Next you can manage your authenticable partners and directories in the Odoo interface:
74+ Next you can manage your authenticable partners and directories in the
75+ Odoo interface:
7776
7877FastAPI > Authentication > Partner
7978
8079and
8180
8281FastAPI > Authentication > Directory
8382
84- Next you must set the directory used for the authentication in the FastAPI endpoint:
83+ Next you must set the directory used for the authentication in the
84+ FastAPI endpoint:
8585
8686FastAPI > FastAPI Endpoint > myapp > Directory
8787
@@ -102,28 +102,28 @@ Bug Tracker
102102Bugs are tracked on `GitHub Issues <https://github.com/OCA/rest-framework/issues >`_.
103103In case of trouble, please check there if your issue has already been reported.
104104If you spotted it first, help us to smash it by providing a detailed and welcomed
105- `feedback <https://github.com/OCA/rest-framework/issues/new?body=module:%20fastapi_auth_partner%0Aversion:%2016 .0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior** >`_.
105+ `feedback <https://github.com/OCA/rest-framework/issues/new?body=module:%20fastapi_auth_partner%0Aversion:%2018 .0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior** >`_.
106106
107107Do not contact contributors directly about support or help with technical issues.
108108
109109Credits
110110=======
111111
112112Authors
113- ~~~~~~~
113+ -------
114114
115115* Akretion
116116
117117Contributors
118- ~~~~~~~~~~~~
118+ ------------
119119
120- * `Akretion <https://www.akretion.com >`_ :
120+ - `Akretion <https://www.akretion.com >`__ :
121121
122- * Sébastien Beau
123- * Florian Mounier
122+ - Sébastien Beau
123+ - Florian Mounier
124124
125125Maintainers
126- ~~~~~~~~~~~
126+ -----------
127127
128128This module is maintained by the OCA.
129129
@@ -135,6 +135,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
135135mission is to support the collaborative development of Odoo features and
136136promote its widespread use.
137137
138- This module is part of the `OCA/rest-framework <https://github.com/OCA/rest-framework/tree/16 .0/fastapi_auth_partner >`_ project on GitHub.
138+ This module is part of the `OCA/rest-framework <https://github.com/OCA/rest-framework/tree/18 .0/fastapi_auth_partner >`_ project on GitHub.
139139
140140You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
0 commit comments