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?
thank you, but we have custom mysql table with users, I dont know LDAP, etc )
anyway, how LDAP or OAuth helps to generate one time no-password login link?
more clean question is: how to learn phpbb to login by some token instead of user/pass.
the token is generated by me, so I need a right place to put token validating code.