Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip "Create New Account" stage programmatically #50

Open
Dawnkai opened this issue Nov 19, 2019 · 3 comments
Open

Skip "Create New Account" stage programmatically #50

Dawnkai opened this issue Nov 19, 2019 · 3 comments

Comments

@Dawnkai
Copy link

Dawnkai commented Nov 19, 2019

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 Dawnkai changed the title Create LDAP user programmatically Skip "Create New Account" stage programmatically Nov 19, 2019
@jonmbake
Copy link
Owner

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

@sefsh
Copy link

sefsh commented Mar 13, 2020

Why can't the plugin itself do it?

@sefsh
Copy link

sefsh commented Apr 4, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants