Skip to content

Instantly share code, notes, and snippets.

@fruchtose
fruchtose / oauthCallbackSequence.js
Created November 22, 2012 07:35
Everyauth OAuth 1.0a authorization callback sequence
everyModule.submodule('oauth')
// .
// .
// .
.get('callbackPath',
'the callback path that the 3rd party OAuth provider redirects to after an OAuth authorization result - e.g., "/auth/twitter/callback"')
.step('extractTokenAndVerifier')
.description('extracts the request token and verifier from the url query')
.accepts('req res next')
.promises('requestToken verifier')