I want to be able to automatically change user email, without needing to send confirmation email, with admin api call. I’m OK with this plugin being opensourced or even be merged to core discourse as a pull request(If main developer wish to add such functionalities).
My use-case is, I am verifying user email with my own code. So dont need to ask for another verification by discourse.
As far as I know, discourse doesn’t have an api call to modify user email without confirmation. It has a shell command to do it, however its not suitable with my situation.
I’ve written my own api with php.
I really don’t know how much it takes. The code is already implemented in core as shell command. I’m not sure how much it takes to provide it in api.
I have an application and my forum is linked to user profile in my application. Users can change their email within my application and I want to automatically change discourse user email too.
Sorry I dont know what is IdP but as for SSO, since I already have a large userbase, implementing an sso for my discourse would break current users account and they need to verify themselves again. I don’t like that. And my problem would be fixed as easily as being able to change email without confirmation with an API call.
Sorry, I shouldn’t be so sure since I have a limited knowledge on the subject, but as far as I understand, according to the following statement, users need to verify themselves in sso provider.
I mean if user is registered in discourse, but did not register in sso provider, If I enable sso, they need to register in sso provider. Yes?
What’s stopping you exporting the user list into whatever SSO you deploy?
You haven’t elaborated on how you currently verify email addresses or why the above is truly necessary. There could be a simpler way to achieve all of this if you answer some of Jay’s questions.
Why not let Discourse handle verification rather than verify emails yourself externally then rely on code to manipulate the discourse database?
Can we export them with their password? If so, please let me know if there is a documentation for it.
Like discourse, I send an email link to verify email.
I wanted to do that. The problem is, I need to immediately know about email confirmation. However discourse didn’t have a user web hook for email/username change.
So why not let Discourse handle SSO for you and just consume identity from Discourse. That way you never need to worry about email verification again.
You’re asking for a perceived solution without giving us the full picture here. There are lots of good reasons to not want a means to bypass email verification. Running disparate systems is just going to create lots of unnecessary work down the line.
Ok. Long story short - since OP knows very well what he needs - I will be able to deliver a plugin that offers an API call to change a users email address (without sending an email or requiring any other kind of activation) for $200.