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 2017/12/04 10:27:01 UTC

[GitHub] phuczeero opened a new issue #1041: Expire X-Auth-CouchDB-Token manually?

phuczeero opened a new issue #1041: Expire X-Auth-CouchDB-Token manually?
URL: https://github.com/apache/couchdb/issues/1041
 
 
   I have a Rest API store users in MongoDB, I want to use Couch-Pouch as synchronize DBs to keep user files structure.
   
   I follow _Proxy Authentication_ section to implement this case:
   
   - When users login, the API authenticate them via MongoDB.
   - After that generate a **token** by hashing (hmac_sha1) the user id (already exist in `_users` db) then return to the client.
   - When Pouch sync to Couch, I set X-Auth-CouchDB-Token & X-Auth-CouchDB-UserName headers to the request.
   
   But when the users change their password, I want to expire previous generated **token**, how can I do that?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services