OAuth Provider - JWT

oauth_provider_jwt
REPOSITORY
REPOSITORYOCA/server-tools
GIT
GIThttps://github.com/OCA/server-tools.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/server-tools/tree/9.0/oauth_provider_jwt
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYAuthentication
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), SYLEAM
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), SYLEAM
COMMITTERS
COMMITTERSOCA Transbot, oca-travis, OCA-git-bot, Sylvain GARANCHER
WEBSITE
WEBSITEhttp://www.syleam.fr/
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:15:22
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/server-tools:
    - oauth_provider
odoo/odoo:
    - base
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES cryptography
jwt
oauthlib
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
view_oauth_provider_client_form oauth.provider.client.form oauth.provider.client xpath Inherits oauth_provider.view_oauth_provider_client_form
Models touched (1)

New fields (5)
  • jwt_algorithm Selection
    help='Algorithm used to sign the JSON Web Token.' selection=[('HS256', 'HMAC using SHA-256 hash algorithm'), ('HS384', 'HMAC using SHA-384 hash algorithm'), ('HS512', 'HMAC using SHA-512 hash algorithm'), ('ES256', 'ECDSA signature algorithm using SHA-256 hash algorithm'), ('ES384', 'ECDSA signature algorithm using SHA-384 hash algorithm'), ('ES512', 'ECDSA signature algorithm using SHA-512 hash algorithm'), ('RS256', 'RSASSA-PKCS1-v1_5 signature algorithm using SHA-256 hash algorithm'), ('RS384', 'RSASSA-PKCS1-v1_5 signature algorithm using SHA-384 hash algorithm'), ('RS512', 'RSASSA-PKCS1-v1_5 signature algorithm using SHA-512 hash algorithm'), ('PS256', 'RSASSA-PSS signature using SHA-256 and MGF1 padding with SHA-256'), ('PS384', 'RSASSA-PSS signature using SHA-384 and MGF1 padding with SHA-384'), ('PS512', 'RSASSA-PSS signature using SHA-512 and MGF1 padding with SHA-512')] string='Algorithm'
  • jwt_private_key Text
    help='Private key used for the JSON Web Token generation.' string='Private Key'
  • jwt_public_key Text
    compute='_compute_jwt_public_key' help='Public key used for the JSON Web Token generation.' string='Public Key'
  • jwt_scope_id Many2one → oauth.provider.scope
    comodel_name='oauth.provider.scope' domain=[('model_id.model', '=', 'res.users')] help="Scope executed to add some user's data in the token." string='Data Scope'
  • token_type Selection
    selection_add=[('jwt', 'JSON Web Token')]
Public methods (2)
  • generate_private_key(self)
    @api.multi
    Generate a private key for ECDSA and RSA algorithm clients
  • get_oauth2_server(self, validator=None, **kwargs)
    @api.multi
    Add a custom JWT token generator in the server's arguments