• Resolved Jeff

    (@jefftobler)


    Currently we have to manually enter the user in Authorizer. But I would like to auto authorize a user when a gravity form is submitted using Webhooks. Is this possible within Authorizer? Would I use REST API or some other method?

    • This topic was modified 6 years, 10 months ago by Jeff.
Viewing 1 replies (of 1 total)
  • Plugin Author Paul Ryan

    (@figureone)

    There’s no API for programmatically adding users to Authorizer, *but* Authorizer hooks into the WordPress hook edit_user_created_user to add any newly created WordPress user to the Authorizer approved list.

    So I would suggest hooking into gravity forms (somewhere, I don’t know much about it) and creating a new WordPress user there. Here’s an example of how Authorizer creates a local user (your code would be similar):
    https://github.com/uhm-coe/authorizer/blob/master/authorizer.php#L811-L821

Viewing 1 replies (of 1 total)
  • The topic ‘Auto-authorize user? REST API?’ is closed to new replies.