OAuth Provider - JWT
oauth_provider_jwt · OCA/server-tools
Health
35/100
poor
-
Security25/25No findings
-
Activity0/25Last human commit 116 months ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 9.0
Heuristic over the facts below, not an audit · How it's computed
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
Migration considerations
- Migrating to 19.0: only `__manifest__.py` is recognized: a module with `__openerp__.py` is not detected at all. migration-openerp-manifest · source
OAuthProviderClient— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (5 methods) migration-api-multi-one · sourceview_oauth_provider_client_form— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · source- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) (3 occurrences in this file) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) migration-openerp-import · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
Dependencies
- Odoo dependencies
- 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 ID | Name | Model | Type | Status |
|---|---|---|---|---|
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) | Handler | Auth | Type | Methods | Flags |
|---|---|---|---|---|---|
/oauth2/public_key |
OAuth2ProviderController.public_key |
none | http | GET | sudo |
Models touched 1
New fields (5)
-
jwt_algorithmSelectionhelp='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_keyTexthelp='Private key used for the JSON Web Token generation.'string='Private Key' -
jwt_public_keyTextcompute='_compute_jwt_public_key'help='Public key used for the JSON Web Token generation.'string='Public Key' -
jwt_scope_idMany2one → oauth.provider.scopecomodel_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_typeSelectionselection_add=[('jwt', 'JSON Web Token')]
-
generate_private_key(self)@api.multiGenerate a private key for ECDSA and RSA algorithm clients -
get_oauth2_server(self, validator=None, **kwargs)@api.multiAdd a custom JWT token generator in the server's arguments