Fill missing user fields on SSO login

Plugin Development
  • Hi! I'm trying to make another SSO plugin, but the difference is: i want user to fill missing fields (like email) after external authentication but before user is created in the forum.

    The only good solution i see is to override successReturnToOrRedirect andfailureRedirect fields to custom routes (https://github.com/NodeBB/NodeBB/blob/master/src/routes/authentication.js#L60), which are handled by plugin itself, to render input forms and logic. So i think it would be nice to extend login strategy with success/fail routes and use them if specified.

    I would like to hear opinion about my idea. If it is good enough i think i can create pull request.


Suggested Topics


  • 0 Votes
    3 Posts
    61 Views
  • 0 Votes
    14 Posts
    687 Views
  • 0 Votes
    4 Posts
    505 Views
  • 0 Votes
    1 Posts
    124 Views
  • 0 Votes
    1 Posts
    1392 Views