phpback / phpback

PHPBack is an open source feedback system
http://www.phpback.org/
GNU General Public License v3.0
378 stars 95 forks source link

Application integration #107

Open Arcesilas opened 7 years ago

Arcesilas commented 7 years ago

Hi,

Not tested PHPBack yet, not been into code yet too (but I've already used CI by the past). How easy (or hard...) is it to integrate PHPBack with an existing application ? I have an application with users and don't want them to have to create another account to give feedback about the main application. Thanks.

ivandiazwm commented 7 years ago

The optimal way will be to implement something like OAuth but it is not available yet. We're planning to do it when we implement social login.

However you could do this as a partial solution now: if you do a POST request to http://youwebsite.com/feedback/action/register you can signup users easily. Just make sure reCaptcha is disabled. You need to provide the following params:

email: email of the user
password: password of the user
password2: password of the user, aging
name: name of the user

To login a user you can make a POST request to http://youwebsite.com/feedback/action/login with the parameters "email", "password" and "rememberme" (boolean) and it will log you in automatically.

Of course the problem with this approach is that you need to have the passwords stored in somewhere (not necessarily the real passwords) and you will not have a layer of securty (reCaptcha).

Arcesilas commented 7 years ago

Thanks for your answer!

The optimal way is not OAuth : if I install phpBack on the same domain as my main application, they can share php session. And I don't plan to store password of any kind as plain text.

Some applications allow to login programmatically by setting a cookie, like Wordpress, for instance : https://developer.wordpress.org/reference/functions/wp_set_auth_cookie/ On the same domain, I think this is the optimal way.

m1guelpf commented 7 years ago

@Arcesilas You may want to have a look at https://wogan.blog/2017/02/12/integrating-laravel-and-flarum/

Arcesilas commented 7 years ago

I'm not sure to understand what to do with it: how are Flarum and PHPBack related?

m1guelpf commented 7 years ago

@Arcesilas I just thought maybe you could find ideas on integrating different applications together.

m1guelpf commented 7 years ago

@Arcesilas I just thought maybe you could find ideas on integrationg different applications together.

Bart274 commented 5 years ago

Is there any progress on the integration of social media? For example, we run a Discord server and I would love to get members to login using their Discord account

DanielRuf commented 5 years ago

I don't think as there is no linked PR.