So I figured one way to get users shared across both my “main” app and discourse would be simply to write a hook that post-registration sends an API request over to discourse and creates that user in the discourse local database also. The most amount of information I’ve been able to dig up has been here:
A lame attempt of mine to create a user from the command line was the following:
curl -i -X POST --data "firstname.lastname@example.org&password=ilovekittens321&username=billybob2" http://discourse.fantasyinsiders.com/users.json
I think I’m hitting
fake_success_response when invoking that, though.
The tricky part it seems will be to figure out the challenge key being appended in addition to
password_confirmation when inspecting POST params from the browser isn’t a duplicate of ‘password’ – seems to be a hash of some sort in this case.
Would anyone be able to point me in the right direction to restfully create & activate a user using the current API?