pavellzubkov opened a new issue #145: Cookie auth don't work?
URL: https://github.com/apache/couchdb-nano/issues/145
 
 
   <!--- Provide a general summary of the issue in the Title above -->
   Can't get session details from couch db (cookies don't set)
   
   ## Expected Behavior
   Request with cookies.
   <!--- If you're describing a bug, tell us what should happen -->
   <!--- If you're suggesting a change/improvement, tell us how it should work 
-->
   
   ## Current Behavior
   Request without cookies.
   Session response with null name
   <!--- If describing a bug, tell us what happens instead of the expected 
behavior -->
   <!--- If suggesting a change/improvement, explain the difference from 
current behavior -->
   
   ## Possible Solution
   ?
   <!--- Not obligatory, but suggest a fix/reason for the bug, -->
   <!--- or ideas how to implement the addition or change -->
   
   ## Steps to Reproduce (for bugs)
   <!--- Provide a link to a live example, or an unambiguous set of steps to -->
   <!--- reproduce this bug. Include code to reproduce, if relevant -->
   `const nano = require('nano')({ url: 'http://localhost:5984', 
requestDefaults: { jar: true } })
   
   const username = 'jan'
   
   const userpass = 'apple'
   
   export function dbtestauth () {
     nano.auth(username, userpass).then((body) => {
       console.log('Body - ' + JSON.stringify(body))
     })
   }
   //Body - {"ok":true,"name":"jan","roles":[]}
   
   export function dbtestsession () {
     nano.session().then((body) => {
       console.log(JSON.stringify(body))
     })
   }
   
//{"ok":true,"userCtx":{"name":null,"roles":[]},"info":{"authentication_db":"_users","authentication_handlers":["cookie","default"]}}
   `
   
   ​
   
   ## Context
   <!--- How has this issue affected you? What are you trying to accomplish? -->
   <!--- Providing context helps us come up with a solution that is most useful 
in the real world -->
   
   ## Your Environment
   <!--- Include as many relevant details about the environment you experienced 
the bug in -->
   * Version used: 8,0,0
   * Browser Name and version: Mozilla/5.0 (Windows NT 10.0; WOW64) 
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.99 
YaBrowser/19.1.0.2644 Yowser/2.5 Safari/537.36
   * Operating System and version (desktop or mobile): Win 10 desktop
   * Link to your project:

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to