mauroporras opened a new pull request #2914:
URL: https://github.com/apache/couchdb/pull/2914


   ## Overview
   
   This PR makes the `_couchdb.roles` custom claim configurable from the 
`local.ini` file, so it can be used with any OpenID Connect (OIDC) compliant 
service, such as Auth0 
(https://auth0.com/docs/api-auth/tutorials/adoption/scope-custom-claims)
   
   ## Testing recommendations
   
   1. In your `local.ini` file, under the `[jwt_auth]` section, add this line:
   ```ini
   roles_custom_claim = https://couchdb.apache.org/roles
   ```
   2. Use this token to send some requests to your CouchDB instance: 
https://jwt.io/#debugger-io?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyLCJodHRwczovL2NvdWNoZGIuYXBhY2hlLm9yZy9yb2xlcyI6WyJfYWRtaW4iLCJzb21lLW90aGVyLXJvbGUiXX0.yvkx2vurrYFH6xtyF01XRcCs1stUVRfKtF8qvhqCfPw
   
   ## Related Issues or Pull Requests
   
   #2913
   
   ## Checklist
   
   - [x] Code is written and works correctly
   - [x] Changes are covered by tests
   - [x] Any new configurable parameters are documented in 
`rel/overlay/etc/default.ini`
   - [ ] A PR for documentation changes has been made in 
https://github.com/apache/couchdb-documentation
   


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to