Skip to content

Commit 93307e7

Browse files
committed
chore: release 1.2.2
1 parent 2d4a8c2 commit 93307e7

File tree

8 files changed

+319
-243
lines changed

8 files changed

+319
-243
lines changed

docs/changelog.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@ Changelog
1212
.. module:: joserfc
1313
:noindex:
1414

15+
1.2.2
16+
-----
17+
18+
**Released on July 14, 2025**
19+
20+
- Fix typo for function name of Chacha20-Poly1305 registration, via :pull:`67`.
21+
- Add claims partial list matching in ``JWTClaimRegistry.validate``, via :pull:`63`.
22+
1523
1.2.1
1624
-----
1725

docs/install.rst

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,22 +24,26 @@ installed using pip.
2424

2525
.. tab-set::
2626

27-
.. tab-item:: General
27+
.. tab-item:: pip
2828

2929
.. code-block:: shell
3030
3131
pip install joserfc
3232
33-
.. tab-item:: C20P and XC20P
33+
.. tab-item:: uv
3434

3535
.. code-block:: shell
3636
37-
pip install joserfc pycryptodome
37+
uv add joserfc
3838
3939
.. important::
4040

4141
To use :ref:`chacha20` algorithms, developers have to install the ``PyCryptodome`` module.
4242

43+
.. code-block:: shell
44+
45+
pip install joserfc pycryptodome
46+
4347
conda install
4448
-------------
4549

docs/locales/zh/LC_MESSAGES/api.po

Lines changed: 26 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: joserfc\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2025-07-07 23:00+0900\n"
11+
"POT-Creation-Date: 2025-07-14 11:51+0900\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1414
"Language: zh\n"
@@ -507,10 +507,30 @@ msgid "Check if this key supports the given \"use\"."
507507
msgstr ""
508508

509509
#: joserfc._rfc7517.models.BaseKey.check_use:3 of
510+
msgid "Values defined by this specification are:"
511+
msgstr ""
512+
513+
#: joserfc._rfc7517.models.BaseKey.check_use:5 of
514+
#, fuzzy
515+
msgid "\"sig\" (signature)"
516+
msgstr "签名"
517+
518+
#: joserfc._rfc7517.models.BaseKey.check_use:6 of
519+
msgid "\"enc\" (encryption)"
520+
msgstr ""
521+
522+
#: joserfc._rfc7517.models.BaseKey.check_use:8 of
523+
msgid ""
524+
"Other values MAY be used. The \"use\" value is a case-sensitive string. "
525+
"Use of the \"use\" member is OPTIONAL, unless the application requires "
526+
"its presence."
527+
msgstr ""
528+
529+
#: joserfc._rfc7517.models.BaseKey.check_use:12 of
510530
msgid "this key is used for, e.g. \"sig\", \"enc\""
511531
msgstr ""
512532

513-
#: joserfc._rfc7517.models.BaseKey.check_use:4 of
533+
#: joserfc._rfc7517.models.BaseKey.check_use:13 of
514534
msgid "UnsupportedKeyUseError"
515535
msgstr ""
516536

@@ -757,6 +777,10 @@ msgstr "具有 ``headers`` 和 ``set_kid`` 方法的协议"
757777
msgid "pick a random key from key set"
758778
msgstr "从密钥集中随机选择一个密钥"
759779

780+
#: joserfc.jwk.guess_key:6 of
781+
msgid "optional \"use\" value"
782+
msgstr ""
783+
760784
#: joserfc.jwk.import_key:1 of
761785
#, fuzzy
762786
msgid ""
@@ -1062,24 +1086,6 @@ msgstr "文档的这一部分涵盖了 ``joserfc.jwt`` 的所有接口。"
10621086
msgid "Requesting \"claims\" for JWT with the given conditions."
10631087
msgstr ""
10641088

1065-
#: joserfc._rfc7519.registry.JWTClaimsRegistry.validate_aud:1 of
1066-
msgid ""
1067-
"The \"aud\" (audience) claim identifies the recipients that the JWT is "
1068-
"intended for. Each principal intended to process the JWT MUST identify "
1069-
"itself with a value in the audience claim. If the principal processing "
1070-
"the claim does not identify itself with a value in the \"aud\" claim when"
1071-
" this claim is present, then the JWT MUST be rejected. In the general "
1072-
"case, the \"aud\" value is an array of case-sensitive strings, each "
1073-
"containing a StringOrURI value. In the special case when the JWT has one"
1074-
" audience, the \"aud\" value MAY be a single case-sensitive string "
1075-
"containing a StringOrURI value. The interpretation of audience values is"
1076-
" generally application specific. Use of this claim is OPTIONAL."
1077-
msgstr ""
1078-
"“aud”(受众)声明标识 JWT 预期的接收者。每个预期处理 JWT "
1079-
"的主体必须在受众声明中标识自己。如果处理声明的主体在存在此声明时未在“aud”声明中标识自己,则必须拒绝 JWT。一般情况下,“aud”值是包含 "
1080-
"StringOrURI 值的区分大小写字符串数组。在 JWT 只有一个受众的特殊情况下,“aud”值可以是包含 StringOrURI "
1081-
"值的单个区分大小写字符串。受众值的解释通常是特定于应用程序的。使用此声明是可选的。"
1082-
10831089
#: joserfc._rfc7519.registry.JWTClaimsRegistry.validate_exp:1 of
10841090
msgid ""
10851091
"The \"exp\" (expiration time) claim identifies the expiration time on or "

0 commit comments

Comments
 (0)