Repository
OCA/server-tools · module folder · Try on Runboat
Module version
1.0.0
Category
Authentication
Folder size
0.04 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
http://www.syleam.fr/
Last tracking update
2026-08-07 07:10:01
Authors
SYLEAM, Odoo Community Association (OCA)
Maintainers
SYLEAM, Odoo Community Association (OCA)
Committers
OCA Transbot, OCA-git-bot, oca-travis, Sylvain GARANCHER
Odoo dependencies
OCA/server-tools:
odoo/odoo:
Python dependencies
cryptography, jwt, oauthlib
System dependencies
None
Required by
None
Description

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
view_oauth_provider_client_form oauth.provider.client.form oauth.provider.client form Inherits oauth_provider.view_oauth_provider_client_form
HTTP endpoints (1)
Route(s)HandlerAuthTypeMethodsFlags
/oauth2/public_key OAuth2ProviderController.public_key none http GET sudo
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