Remote Login Troubleshooting
-
Hello! I am working on adapting this plugin to map a domain to a sub directory multisite network rather than to individual blogs. This allows keeping all of the admin/login on network.example.com where there is a wildcard SSL for example.com. All front-end access happens on network.com.
For example:
network.example.com –> network.com
network.example.com/blog1 –> network.com/blog1
network.example.com/blog2 –> network.com/blog2I have 90% of it working I think, but am having issues with the remote login functionality. I have narrowed it down to the fact that auth cookies are never being set for the mapped domain so when it gets to the remote_login_js function, it exits because is fails the check for !is_user_logged_in().
In the normal operation of the domain mapping plugin, does the login page display from the original or mapped domain? It is showing from the original domain in my current instance and I am wondering if that is what is causing the issue or not. It stays logged in correctly on the original domain, but the admin bar is not displayed when looking at the front end as it doesn’t think I am logged in when using the mapped domain.
Any help on how the remote login is supposed to work would be greatly appreciated.
So far I have done this with just a custom sunrise.php and 2 small changes to domain_mapping.php. in the domain_mapping table I just have a row for each blog mapped to the same domain.
Thank you in advance for your help.
https://www.ads-software.com/plugins/wordpress-mu-domain-mapping/
- The topic ‘Remote Login Troubleshooting’ is closed to new replies.