1. Atlassian
  2. Atlassian Connect
  3. atlassian-connect-express

Commits

Rich Manalang  committed 5b9e50e Merge

Merged in sday_atlassian/atlassian-connect-express/oauth-promise-wtf (pull request #9)

Fix for promise handler in oauth middleware.

  • Participants
  • Parent commits f0e3ad6, f51f6f1
  • Branches master

Comments (0)

Files changed (1)

File lib/middleware/oauth.js

View file
  • Ignore whitespace
           else {
             verify(consumer.publicKey);
           }
-        },
-        function (err) {
+        }).fail(function (err) {
           send(401, 'OAuth request not authenticated due to consumer lookup failure: ' + err)
         }
       );