{"issue":{"pull_request":{"diff_url":"https://github.com/assaf/zombie/pull/202.diff","html_url":"https://github.com/assaf/zombie/pull/202","patch_url":"https://github.com/assaf/zombie/pull/202.patch"},"state":"open","milestone":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/3f6f93687408555d1015c70a57f0837e?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"3f6f93687408555d1015c70a57f0837e","url":"https://api.github.com/users/mintbridge","login":"mintbridge","id":32777},"updated_at":"2011-11-17T21:49:34Z","labels":[],"assignee":null,"closed_at":null,"comments":2,"url":"https://api.github.com/repos/assaf/zombie/issues/202","body":"Hi,\r\n\r\nI've added a working implementation of Basic Auth. You can pass the crendentials in as options eg:\r\n\r\n```js\r\nvar zombie = require(\"zombie\");\r\nvar assert = require(\"assert\");\r\n\r\nvar options = {\r\n  credentials: {\r\n     method: 'Basic', \r\n     user: 'username', \r\n     password: 'password'\r\n  }\r\n}\r\n// Load the page from localhost\r\nzombie.visit(\"http://localhost:3000/\", options, function (err, browser, status) {\r\n\r\n  // Fill email, password and submit form\r\n  browser.\r\n    fill(\"email\", \"zombie@underworld.dead\").\r\n    fill(\"password\", \"eat-the-living\").\r\n    pressButton(\"Sign Me Up!\", function(err, browser, status) {\r\n\r\n      // Form submitted, new page loaded.\r\n      assert.equal(browser.text(\"title\"), \"Welcome To Brains Depot\");\r\n\r\n    })\r\n\r\n});\r\n```","html_url":"https://github.com/assaf/zombie/issues/202","title":"Basic Auth implementation","number":202,"id":2273726,"created_at":"2011-11-17T21:04:37Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/3f6f93687408555d1015c70a57f0837e?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"3f6f93687408555d1015c70a57f0837e","url":"https://api.github.com/users/mintbridge","login":"mintbridge","id":32777},"updated_at":"2011-11-17T21:49:34Z","url":"https://api.github.com/repos/assaf/zombie/issues/comments/2782537","body":"I though you might ask that :). Yeah, ill have a read through some of the other tests and work out what needs adding","id":2782537,"created_at":"2011-11-17T21:49:34Z"}}