Skip to main content

This module adds a signin service with jwt token.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file odoo_addon_shopinvader_api_signin_jwt-16.0.2.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for odoo_addon_shopinvader_api_signin_jwt-16.0.2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6c905500b2c5b60086b9b2b243be74caa9c355cdf82c28fbcaa0868a1b5e5e7a
MD5 20579b0a80f48d88987d3a516b4ac64f
BLAKE2b-256 9a1a6d0a7f065599319637c1cf16797d8b8be0761e8997f4c2cc7711c95f180f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page