-
-
Notifications
You must be signed in to change notification settings - Fork 434
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[17.0][FIX] auth_jwt: cleaning up for migration
- Loading branch information
1 parent
7f7dd09
commit 5b14de5
Showing
4 changed files
with
20 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,24 +48,24 @@ Odoo controller routes. | |
|
||
To use it, you must: | ||
|
||
- Create an ``auth.jwt.validator`` record to configure how the JWT | ||
token will be validated. | ||
- Add an ``auth="jwt_{validator-name}"`` or | ||
``auth="public_or_jwt_{validator-name}"`` attribute to the routes you | ||
want to protect where ``{validator-name}`` corresponds to the name | ||
attribute of the JWT validator record. | ||
- Create an ``auth.jwt.validator`` record to configure how the JWT token | ||
will be validated. | ||
- Add an ``auth="jwt_{validator-name}"`` or | ||
``auth="public_or_jwt_{validator-name}"`` attribute to the routes you | ||
want to protect where ``{validator-name}`` corresponds to the name | ||
attribute of the JWT validator record. | ||
|
||
The ``auth_jwt_demo`` module provides examples. | ||
|
||
The JWT validator can be configured with the following properties: | ||
|
||
- ``name``: the validator name, to match the | ||
``auth="jwt_{validator-name}"`` route property. | ||
- ``audience``: a comma-separated list of allowed audiences, used to | ||
validate the ``aud`` claim. | ||
- ``issuer``: used to validate the ``iss`` claim. | ||
- Signature type (secret or public key), algorithm, secret and JWK URI | ||
are used to validate the token signature. | ||
- ``name``: the validator name, to match the | ||
``auth="jwt_{validator-name}"`` route property. | ||
- ``audience``: a comma-separated list of allowed audiences, used to | ||
validate the ``aud`` claim. | ||
- ``issuer``: used to validate the ``iss`` claim. | ||
- Signature type (secret or public key), algorithm, secret and JWK URI | ||
are used to validate the token signature. | ||
|
||
In addition, the ``exp`` claim is validated to reject expired tokens. | ||
|
||
|
@@ -135,7 +135,8 @@ Authors | |
Contributors | ||
------------ | ||
|
||
- Stéphane Bidoul <[email protected]> | ||
- Stéphane Bidoul <[email protected]> | ||
- Mohamed Alkobrosli <[email protected]> | ||
|
||
Maintainers | ||
----------- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
- Stéphane Bidoul \<<[email protected]>\> | ||
- Mohamed Alkobrosli \<<[email protected]>\> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters