bnoguchi/everyauth — pull request #287 by genuisereal (2012-06-20 09:14:02+00:00)
Title: Promise and this reference caused uncaught 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.