discourse-ldap-auth icon indicating copy to clipboard operation
discourse-ldap-auth copied to clipboard

Skip "Create New Account" stage programmatically

Open Dawnkai opened this issue 6 years ago • 3 comments

I'm trying to automate LDAP user creation via this plugin using Python (so that the new user added to LDAP doesn't have to click the "Create New Account" button after first login). I searched Discourse API: https://docs.discourse.org/#tag/Users/paths/~1users/post in order to see if there are any specific options on user that are being detected upon login and then altering them but I haven't found anything.

There are no problems logging the LDAP user in and then creating new user (with the Create New Account window that appears upon first login) via the UI, but is there any way to do it via Python code? Like, with requests library or maybe I have missed something in Discourse documentation?

Dawnkai avatar Nov 19 '19 17:11 Dawnkai

I don't think this is possible through the Discourse API. It might be worth posting something in https://meta.discourse.org/.

jonmbake avatar Nov 20 '19 15:11 jonmbake

Why can't the plugin itself do it?

sefsh avatar Mar 13 '20 18:03 sefsh

Seems like WP Discourse plugin has the ability to automatically create new Discourse users. Can this code be used as model?

sefsh avatar Apr 04 '20 21:04 sefsh