clarkwinkelmann Hi
Thanks i red the doc and some points was not enough clear, for my framework i am using plain php because i work with CMS Textpattern wich is still an old school CMS but i quite like it.
Working with curl dont bother me, i only need some guidence on how to achieve some point because i dont know Laravel and Flarum.
luceos "
Thanks i didnt found it during my search.
Right now i try to figure out how the login mechanism work using the api, when looking other example it seems you only need to create a cookie with the token to make it connected, but with my test i havent succeded yet
$res1['token'];
$arr_cookie_options = array (
'expires' => time() + 60*60*24*30,
'path' => '/flarum',
'domain' => 'devw.bni-solutions.com',
'secure' => true,
'httponly' => true,
'samesite' => 'Lax'
);
setcookie('flarum_session', $res1['token'], $arr_cookie_options);
The cookie is created but Is there something else to do to make the user connected when visiting the flarum url ?
Aah ok it s the SSO plugin that make it login!!!
Cool a step in the right direction, I need to code the creation of user and see how to handle the login/logout and it will good.
Thanks for your help.