Open Arcesilas opened 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).
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.
@Arcesilas You may want to have a look at https://wogan.blog/2017/02/12/integrating-laravel-and-flarum/
I'm not sure to understand what to do with it: how are Flarum and PHPBack related?
@Arcesilas I just thought maybe you could find ideas on integrating different applications together.
@Arcesilas I just thought maybe you could find ideas on integrationg different applications together.
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
I don't think as there is no linked PR.
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.