bnoguchi/everyauth — pull request #286 by genuisereal (2012-06-20 09:07:44+00:00)
Title: Promise and this reference caused uncought exception in openid module sendToAuthenticationUri step

1) Openid module `sendToAuthenticationUri` step did not provide correct `Promise` object reference to use inside `this.relyingParty.authenticate` callback function. Also call back function did not fulfill promise(caused timeout error) and step itself did not return promise reference (caused uncaught exception).

2) `this.redirect` in `this.relyingParty.authenticate` callback function thrown exception because `this` in the context did not have `redirect` method. Thus `self` was defined in outer context and `self.redirect` invoked.