This kind of transparent auth can be built, but its complicated cause you would have to write a custom auth provider and ship a plugin.
The simple alternative is to simply enable SSO and force everyone to login to the forum via the main site (a page you create)