Hi @maicol07
Sorry to bother you a lot.
My folder structure is like this
www
->sso
-->forum
------>public
------>vendor
-->vendor
-->index.php
-->flarum.php
-->delete.php
->.......
index.php for login in inside the sso folder and forum folder is also at the same place
localhost/sso to load login page and localhost/sso/forum/public is the forum url.
I used these parameters as follows
FLARUM_HOST=http://localhost/sso/forum/public
API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
ROOT_DOMAIN=localhost
Can you point out anything wrong with this configuration? I used the given example login forms with your php library. Still I can't figure out this problem. It always redirects me to localhost intsed of forum public url which I redirected using header("Location: http://localhost/sso/forum/public"); after logging in