This module adds a signin service with jwt token.
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file odoo_addon_shopinvader_api_signin_jwt-16.0.2.0.0-py3-none-any.whl.
File metadata
- Download URL: odoo_addon_shopinvader_api_signin_jwt-16.0.2.0.0-py3-none-any.whl
- Upload date:
- Size: 16.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c905500b2c5b60086b9b2b243be74caa9c355cdf82c28fbcaa0868a1b5e5e7a
|
|
| MD5 |
20579b0a80f48d88987d3a516b4ac64f
|
|
| BLAKE2b-256 |
9a1a6d0a7f065599319637c1cf16797d8b8be0761e8997f4c2cc7711c95f180f
|