File tree Expand file tree Collapse file tree 5 files changed +9
-9
lines changed Expand file tree Collapse file tree 5 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ UnsupportedAlgorithmError
33
33
.. versionadded :: 1.1.0
34
34
35
35
By default, **ONLY recommended ** :ref: `jwa ` are allowed. With non recommended
36
- algorithms, you may encounter the ``UnsupportedAlgorithmError` `` error.
36
+ algorithms, you may encounter the ``UnsupportedAlgorithmError `` error.
37
37
38
38
.. code-block :: python
39
39
Original file line number Diff line number Diff line change @@ -208,7 +208,7 @@ The syntax of a JWE using the flattened JWE JSON Serialization is as follows:
208
208
209
209
It is flattened, it moves all the members out of the ``recipients `` field. To
210
210
``encrypt_json `` into a flattened serialization, you can construct a
211
- :class`jwe.FlattenedJSONEncryption` instead:
211
+ :class: `jwe.FlattenedJSONEncryption ` instead:
212
212
213
213
.. code-block :: python
214
214
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ It represents RSA keys.
70
70
Generate an "RSA" key
71
71
~~~~~~~~~~~~~~~~~~~~~
72
72
73
- You can generate an "EC " key with a given key size (in bit):
73
+ You can generate an "RSA " key with a given key size (in bit):
74
74
75
75
.. code-block :: python
76
76
@@ -297,7 +297,7 @@ Key methods
297
297
``thumbprint ``
298
298
~~~~~~~~~~~~~~
299
299
300
- Call this method will generate the thumbprint of the JWK, per RFC7638.
300
+ Calling this method will generate the thumbprint of the JWK, per RFC7638.
301
301
302
302
.. code-block :: python
303
303
@@ -323,7 +323,7 @@ You can also use the ``jwk.thumbprint`` method:
323
323
324
324
.. versionadded :: 1.2.0
325
325
326
- Call this method will generate the JWK thumbprint URI, per RFC9278.
326
+ Calling this method will generate the JWK thumbprint URI, per RFC9278.
327
327
328
328
.. code-block :: python
329
329
Original file line number Diff line number Diff line change @@ -246,7 +246,7 @@ You can also pass a JWK Set to the ``key`` parameter of :meth:`encode` and
246
246
jwt.encode(header, claims, key_set)
247
247
248
248
The methods will find the correct key according to the ``kid `` you specified.
249
- If there is no ``kid `` in header, it will pick on randomly and add the ``kid ``
249
+ If there is no ``kid `` in header, it will pick one randomly and add the ``kid ``
250
250
of the key into header.
251
251
252
252
A client would usually get the public key set from a public URL, normally the
@@ -362,7 +362,7 @@ You can find out the recommended algorithms at:
362
362
- :ref: `JSON Web Signature Algorithms <jws_algorithms >`
363
363
- :ref: `JSON Web Encryption Algorithms <jwe_algorithms >`
364
364
365
- For instance, ``HS386 `` is not a recommended algorithm, and you want to use
365
+ For instance, ``HS384 `` is not a recommended algorithm, and you want to use
366
366
this algorithm:
367
367
368
368
.. code-block :: python
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ the following format:
68
68
69
69
https://login.microsoftonline.com/{tenant}/v2.0/.well-known/openid-configuration
70
70
71
- In the example provided, replace {tenant} with your specific Azure tenant ID or
71
+ In the example provided, replace `` {tenant} `` with your specific Azure tenant ID or
72
72
the tenant's globally unique identifier (GUID). The resulting URL will lead you
73
73
to the OpenID configuration details. Then, the OpenID configuration endpoint for
74
74
the above example could be:
@@ -88,7 +88,7 @@ can typically be found within the configuration as follows:
88
88
89
89
https://login.microsoftonline.com/{tenant}/discovery/v2.0/keys
90
90
91
- Once again, remember to replace {tenant} with your Azure tenant ID or the appropriate identifier.
91
+ Once again, remember to replace `` {tenant} `` with your Azure tenant ID or the appropriate identifier.
92
92
In the above example, the ``jwks_uri `` could be:
93
93
94
94
.. code-block :: none
You can’t perform that action at this time.
0 commit comments