You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2020/04/27 20:12:04 UTC
[couchdb-documentation] 10/10: fix xref
This is an automated email from the ASF dual-hosted git repository.
rnewson pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/couchdb-documentation.git
commit e35ebafa2ee04a332fc0ab99d768c5029c88b146
Author: Robert Newson <ro...@uk.ibm.com>
AuthorDate: Mon Apr 27 20:55:19 2020 +0100
fix xref
---
src/api/server/authn.rst | 6 ------
src/config/auth.rst | 11 +++++++++++
2 files changed, 11 insertions(+), 6 deletions(-)
diff --git a/src/api/server/authn.rst b/src/api/server/authn.rst
index 40432fa..d4e1cf8 100644
--- a/src/api/server/authn.rst
+++ b/src/api/server/authn.rst
@@ -376,12 +376,6 @@ are required.
Two sections of config exist to configure JWT authentication;
-.. code-block:: ini
-
- ;[jwt_auth]
- ; List of claims to validate
- ; required_claims =
-
The :config:option:`required_claims <jwt_auth/required_claims>` config
setting is a comma-separated list of additional mandatory JWT claims
that must be present in any presented JWT token. A `:code 400:Bad
diff --git a/src/config/auth.rst b/src/config/auth.rst
index 2097b9a..c62c71a 100644
--- a/src/config/auth.rst
+++ b/src/config/auth.rst
@@ -300,3 +300,14 @@ Authentication Configuration
[couch_httpd_auth]
x_auth_username = X-Auth-CouchDB-UserName
+
+.. config:section:: jwt_auth :: JWT Authentication
+
+ .. config:option:: required_claims :: Mandatory claims in JWT tokens
+
+ This parameter is a comma-separated list of additional mandatory JWT claims
+ that must be present in any presented JWT token. A
+ `:code 400:Bad Request` is sent if any are missing. ::
+
+ [jwt_auth]
+ required_claims = exp,iat