Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion providers/fab/docs/auth-manager/token.rst
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,13 @@ This custom logic overrides the default ``create_token`` method from the FAB aut
.. warning::
The example shown below disables signature verification (``verify_signature=False``).
This is **insecure** and should only be used for testing. Always validate tokens properly in production.
Furthermore you need to make sure that the claims of the JWT are valid.
Critical claims that you must verify are for example (but not limited to):
- ``iss`` (issuer)
- ``aud`` (audience)
- ``nbf`` (not before time)
- ``exp`` (expiration time)
Refer to the documentation of your identity provider for more information.

.. code-block:: python

Expand Down Expand Up @@ -114,7 +121,8 @@ This custom logic overrides the default ``create_token`` method from the FAB aut
# token,
# public_key,
# algorithms=['HS256', 'RS256'],
# audience=CLIENT_ID
# audience=CLIENT_ID,
# issuer=ISSUER_URL,
# )
#
# Without signature validation (not recommended):
Expand Down