TIP: You can type at any time to perform a new search.
OAuth Provider - JWT
oauth_provider_jwt · OCA/server-tools
- 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
- Python dependencies
- cryptography, jwt, oauthlib
- System dependencies
- None
- Required by
- None
- Description
Code Analysis ⓘ
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