Fill missing user fields on SSO login

Plugin Development
  • #1

    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
    1 Posts
    118 Views

  • 0 Votes
    4 Posts
    430 Views

  • 0 Votes
    18 Posts
    3805 Views

  • 0 Votes
    1 Posts
    1375 Views

  • 0 Votes
    4 Posts
    2285 Views

| | | |