Skip to main content
Odoo Community Association

Shopinvader Api Signin JWT

Beta License: AGPL-3 shopinvader/odoo-shopinvader

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

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

Authors

  • ACSONE SA/NV

Contributors

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)

Table of built distributions (wheels) for odoo-addon-shopinvader-api-signin-jwt 18.0.1.0.0.2
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

18.0.1.0.0.2 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page