My global goal is to setup phpbb to use outside auth data(from main site db, using Yii2 project on same server).
I wrote the shell command for user update and calling it at user update events at main site, its seems to work ok.
Now I need to redirect main site's users to forum and not to ask user/password again since they already logged at main site.
I plans to write some action at main site which will redirect logged users to phpbb using a one time login link.
So I need two hacks for phpbb:
1) shell command which will generate the login link (random hash written to some table for later checking).
2) some entry point in phpbb accepting the hash and calling complete login procedure, etc.
1st step is not too hard: I can create mysql table manually and write a shell command.
but what about 2nd step? What the best way to do it?