-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
JWT: require valid
exp
claim by default
Users of JWT rightly expect tokens to be considered invalid once they expire. It is a surprise to some that this requires a change to the default configuration. In the interest of security we will now require a valid `exp` claim in tokens. Administrators can disable the check by changing `required_claims` back to the empty string. We do not add `nbf` as a required claim as it seems to not be set often in practice. closes #5046
- Loading branch information
Showing
4 changed files
with
50 additions
and
2 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
.. Licensed under the Apache License, Version 2.0 (the "License"); you may not | ||
.. use this file except in compliance with the License. You may obtain a copy of | ||
.. the License at | ||
.. | ||
.. http://www.apache.org/licenses/LICENSE-2.0 | ||
.. | ||
.. Unless required by applicable law or agreed to in writing, software | ||
.. distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
.. WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
.. License for the specific language governing permissions and limitations under | ||
.. the License. | ||
.. _release/3.4.x: | ||
|
||
============ | ||
3.4.x Branch | ||
============ | ||
|
||
.. contents:: | ||
:depth: 1 | ||
:local: | ||
|
||
.. _release/3.4.0: | ||
|
||
Version 3.4.0 | ||
============= | ||
|
||
* JWT: require valid `exp` claim by default | ||
|
||
.. _release/3.4.x/breakingchanges: | ||
|
||
Breaking Changes | ||
================ | ||
|
||
* :ghissue:`5046`: JWT: require valid `exp` claim by default | ||
|
||
Users of JWT rightly expect tokens to be considered invalid once they expire. It | ||
is a surprise to some that this requires a change to the default | ||
configuration. In the interest of security we will now require a valid `exp` | ||
claim in tokens. Administrators can disable the check by changing | ||
`required_claims` back to the empty string. | ||
|
||
We recommend adding `nbf` as a required claim if you know your tokens will | ||
include it. |
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 |
---|---|---|
|
@@ -20,6 +20,7 @@ Release Notes | |
:glob: | ||
:maxdepth: 2 | ||
|
||
3.4 | ||
3.3 | ||
3.2 | ||
3.1 | ||
|