Shopinvader Api Signin JWT
This addon adds a web API to signin into the application and create a partner if the email in the jwt payload is unknown.
This addon supports the “anonymous partner” feature, which allows to create carts for user that are not loggedin. When you login from an anonymous partner, your cart is transfered to your real partner, and your anonymous partner is deleted.
Table of contents
Installation
To enable anonymous carts, you’ll need the module shopinvader_fastapi_auth_jwt. And use it’s dependency auth_jwt_authenticated_or_anonymous_partner_autocreate when mounting your cart router, such as:
cart_app = FastAPI()
cart_app.include_router(cart_router)
cart_app.dependency_overrides.update(
{
authenticated_partner_impl: auth_jwt_authenticated_or_anonymous_partner_autocreate,
}
)
Example of a full implementation with jwt signin and anonymous carts can be found in the demo module shopinvader_v2_app_demo.
Known issues / Roadmap
Use fastapi_auth_jwt.auth_jwt_authenticated_odoo_env dependency for the env (see https://github.com/OCA/rest-framework/issues/406)
Bug Tracker
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.
Do not contact contributors directly about support or help with technical issues.
Credits
Contributors
Quentin Groulard <quentin.groulard@acsone.eu>
Maintainers
This module is part of the shopinvader/odoo-shopinvader project on GitHub.
You are welcome to contribute.
Metadata
Release files for odoo-addon-shopinvader-api-signin-jwt 18.0.1.0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| odoo_addon_shopinvader_api_signin_jwt-18.0.1.0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Release files / odoo_addon_shopinvader_api_signin_jwt-18.0.1.0.0.2-py3-none-any.whl
| Download URL | odoo_addon_shopinvader_api_signin_jwt-18.0.1.0.0.2-py3-none-any.whl |
|---|---|
| Size | 16.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
24e540aa79ffb35380a4d60ad94ae3fb891a363ecb27476d4d1f9da7619b356c
|
|
BLAKE2b-256 checksum How to use checksums |
0992fdeb122373ba2668e52f9a96dab593dbb9667cc491db8cf93144fc250ed2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|