You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2022/06/02 12:46:49 UTC

[GitHub] [couchdb-documentation] big-r81 opened a new pull request, #737: Introduce new `roles_claim_path` parameter

big-r81 opened a new pull request, #737:
URL: https://github.com/apache/couchdb-documentation/pull/737

   and add missing `roles_claim_name` description
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [couchdb-documentation] big-r81 commented on pull request #737: Introduce new `roles_claim_path` parameter

Posted by GitBox <gi...@apache.org>.
big-r81 commented on PR #737:
URL: https://github.com/apache/couchdb-documentation/pull/737#issuecomment-1280618030

   I'm closing this ticket due the migration of the docs from apache/couchdb-documentation to apache/couchdb. Please create a new PR in apache/couchdb.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [couchdb-documentation] big-r81 closed pull request #737: Introduce new `roles_claim_path` parameter

Posted by GitBox <gi...@apache.org>.
big-r81 closed pull request #737: Introduce new `roles_claim_path` parameter
URL: https://github.com/apache/couchdb-documentation/pull/737


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [couchdb-documentation] rnewson commented on a diff in pull request #737: Introduce new `roles_claim_path` parameter

Posted by GitBox <gi...@apache.org>.
rnewson commented on code in PR #737:
URL: https://github.com/apache/couchdb-documentation/pull/737#discussion_r958294519


##########
src/api/server/authn.rst:
##########
@@ -394,10 +394,17 @@ signature.
 The ``sub`` claim is mandatory and is used as the CouchDB user's name if the JWT token
 is valid.
 
-A private claim called ``_couchdb.roles`` is optional. If presented,
-as a JSON array of strings, it is used as the CouchDB user's roles
+You can set the user roles claim name through the config setting
+:config:option:`roles_claim_name <jwt_auth/roles_claim_name>`. If you don't set
+an explicit value, then ``_couchdb.roles`` will be set as the default claim name.
+If presented, as a JSON array of strings, it is used as the CouchDB user's roles
 list as long as the JWT token is valid.
 
+.. warning::
+
+    ``roles_claim_name`` is deprecated in CouchDB 3.3, and will be removed later.

Review Comment:
   I don't think this has been agreed formally, please start a discuss or vote thread on the dev mailing list. For my part I see no urgent need to remove it.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org