What is the best way to add another step in to everyauth?
I would like to add another step to the OpenId authentication sequence defined in the [everyauth openid module][1].

I am not sure if everyauth is designed for this. The author [mentions][2] that it is customizable but there are no examples and I am still a javascript newb.

For example, the OAuth module in everyauth defines its authentication callback steps like this:

    .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)

What should I do if I need an additional custom step in there? I would prefer to no change the everyauth module source code.

  [1]: https://github.com/bnoguchi/everyauth/blob/master/lib/modules/openid.js
  [2]: http://stackoverflow.com/questions/5765063/node-js-connect-auth-vs-everyauth/6197767#6197767
What is the best way to add another step in to everyauth?
===

I would like to add another step to the OpenId authentication sequence defined in the [everyauth openid module][1].

I am not sure if everyauth is designed for this. The author [mentions][2] that it is customizable but there are no examples and I am still a javascript newb.

For example, the OAuth module in everyauth defines its authentication callback steps like this:

    .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)

What should I do if I need an additional custom step in there? I would prefer to no change the everyauth module source code.

  [1]: https://github.com/bnoguchi/everyauth/blob/master/lib/modules/openid.js
  [2]: http://stackoverflow.com/questions/5765063/node-js-connect-auth-vs-everyauth/6197767#6197767