Sounds like you want SSO (Single Sign On)? Have you looked at something like:
There’s also this thread that might help: