PDA

View Full Version : Custom authentication


iliakan
08-02-2007, 09:04 AM
I'm building the site with custom authentication, which includes permanent sessions for anonymous users, multi-domain single login etc.

On database level I keep same vb_user table, so joins go just fine.

This approach requires my own custom code to set up authentication and remember/register user.

Where should I stick it into forum code (3.6) ?

Dismounted
08-02-2007, 10:01 AM
One of the login_ hooks. Look in login.php for one that most suits you.

iliakan
08-02-2007, 11:45 AM
login hooks work only on login, not on authentication.

For example, when user comes to forum page, authentication may need to remember him or ask master in case of multi-domain authentication / OpenID.

Dismounted
08-02-2007, 12:01 PM
In that case, init_startup.