You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

79 lines
2.3 KiB

  1. .. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
  2. :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
  3. :alt: License: AGPL-3
  4. ====================
  5. OAuth Provider - JWT
  6. ====================
  7. This module adds the JSON Web Token support to OAuth2 provider.
  8. Installation
  9. ============
  10. To install this module, you need to:
  11. #. Install the pyjwt and cryptography python modules
  12. #. Install the module like any other in Odoo
  13. Configuration
  14. =============
  15. This module adds a new token type in the OAuth client configuration.
  16. Once the *JSON Web Token* type is selected, a new tab appears at the bottom, where you'll have to select an algorithm for the token signature.
  17. For asymetric algorithms, it is possible to put a custom private key, or the module can generate one for you.
  18. The public key is automatically computed from the private one.
  19. Usage
  20. =====
  21. There is no usage change from the base OAuth2 provider module.
  22. The public key can be retrieved by clients using this URL: http://odoo.example.com/oauth2/public_key?client_id=identifier_of_the_oauth_client
  23. .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
  24. :alt: Try me on Runbot
  25. :target: https://runbot.odoo-community.org/runbot/149/9.0
  26. Known issues / Roadmap
  27. ======================
  28. * Add support for the client-side JWT request (https://tools.ietf.org/html/rfc7523)
  29. Bug Tracker
  30. ===========
  31. Bugs are tracked on `GitHub Issues
  32. <https://github.com/OCA/server-tools/issues>`_. In case of trouble, please
  33. check there if your issue has already been reported. If you spotted it first,
  34. help us smashing it by providing a detailed and welcomed feedback.
  35. Credits
  36. =======
  37. Images
  38. ------
  39. * Odoo Community Association: `Icon <https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg>`_.
  40. Contributors
  41. ------------
  42. * Sylvain Garancher <sylvain.garancher@syleam.fr>
  43. Maintainer
  44. ----------
  45. .. image:: https://odoo-community.org/logo.png
  46. :alt: Odoo Community Association
  47. :target: https://odoo-community.org
  48. This module is maintained by the OCA.
  49. OCA, or the Odoo Community Association, is a nonprofit organization whose
  50. mission is to support the collaborative development of Odoo features and
  51. promote its widespread use.
  52. To contribute to this module, please visit https://odoo-community.org.