Skip to content
Health
35/100
poor
  • Security25/25
    No findings
  • Activity0/25
    Last human commit 116 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity5/25
    In 1 Odoo series since 9.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
0
Modules depending on it
External deps
3 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.04 MB
Module directory on disk
Code analysis 5 migration notes 1 model 1 view 1 HTTP endpoint

Description

Dependencies

Odoo dependencies
OCA/server-tools:
odoo/odoo:
Python dependencies
cryptography, jwt, oauthlib
System dependencies
None
Required by
None

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

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