When directing to a domain that is different from the phpBB installation (such as a subdomain) the phpBB installation can give the following error:
Tried to redirect to potentially insecure url.
This will be a hurdle at needs to be overcome, either by creating a phpBB extension, or by working some magic through the MW installation.