Note that there are some explanatory texts on larger screens.

plurals
  1. POWhat is the best way to add another step in to everyauth?
    primarykey
    data
    text
    <p>I would like to add another step to the OpenId authentication sequence defined in the <a href="https://github.com/bnoguchi/everyauth/blob/master/lib/modules/openid.js" rel="nofollow noreferrer">everyauth openid module</a>.</p> <p>I am not sure if everyauth is designed for this. The author <a href="https://stackoverflow.com/questions/5765063/node-js-connect-auth-vs-everyauth/6197767#6197767">mentions</a> that it is customizable but there are no examples and I am still a javascript newb.</p> <p>For example, the OAuth module in everyauth defines its authentication callback steps like this:</p> <pre><code>.get('callbackPath', 'the callback path that the 3rd party OAuth provider redirects to after an OAuth authorization result - e.g., "/auth/facebook/callback"') .step('getCode') .description('retrieves a verifier code from the url query') .accepts('req res') .promises('code') .canBreakTo('authCallbackErrorSteps') .step('getAccessToken') .accepts('code') .promises('accessToken extra') .step('fetchOAuthUser') .accepts('accessToken') .promises('oauthUser') .step('getSession') .accepts('req') .promises('session') .step('findOrCreateUser') .accepts('session accessToken extra oauthUser') .promises('user') .step('compile') .accepts('accessToken extra oauthUser user') .promises('auth') .step('addToSession') .accepts('session auth') .promises(null) .step('sendResponse') .accepts('res') .promises(null) </code></pre> <p>What should I do if I need an additional custom step in there? I would prefer to NOT change the everyauth module source code.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload