You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a follow up to an Auth0 Community post that I created recently. We have a WordPress multisite environment and we would like to enable the Auth0 plugin, network activate it and then configure it once for all blogs.
I'm not able to do that today. I have to access each blog and reconfigure the Auth0 plugin for that specific site. The import function makes this easier but I would like to improve the situation so we do not have to manually configure existing and future blogs.
I'd like to start a discussion with you regarding this and see if it's an enhancement worth pursuing.
Details
After reviewing the plugin source, it looks like you are primarily using calls to the update_option() function. As I understand it, this function will update the options table associated with a specific site ID. So rather than storing the options in the global options table in the WordPress database, it will store them in a site specific table called wp_XX_options (XX is the site ID).
Would it be possible to provide an option for users to use the add_site_option() function? I think this will amend the global options table. Is this something you have evaluated?
I would prefer not to make code changes to the plugin itself but I could try to extract the relevant parameters from a configuration export and then reinstall the plugin with those defaults set.
Conclusion
If you're aware of any reasons that this will not work, I would love to hear it. If there's anything I could do to help move this along faster, I'd be happy to try and help.
The text was updated successfully, but these errors were encountered:
I know this is old but it's still relevant, even more so with some recent focus on testing, configuration, and documentation around WordPress networks.
I definitely understand the pain point here and happy to work towards a clear, coherent solution. In writing documentation for the multisite install process, though, it's clear that the hard part here is going to be coming up with a solution that works for the many different ways that Auth0 can be configured for networks. In short:
Each site can have it's own Application and DB Connection
Each site can have it's own Application and share a DB Connection (generally how I would recommend doing it)
All sites can share an Application and a DB Connection
Documentation explaining this process is going live tomorrow after the 3.6.0 update, guiding site owners through this configuration. But, without significant and specific UI for network installs, this might be impossible to fulfill. Still, I'm tagging an issue at the bottom here related to improving the whole setup process and we'll try to address this as best as we can.
Issue summary and objective
This is a follow up to an Auth0 Community post that I created recently. We have a WordPress multisite environment and we would like to enable the Auth0 plugin, network activate it and then configure it once for all blogs.
I'm not able to do that today. I have to access each blog and reconfigure the Auth0 plugin for that specific site. The import function makes this easier but I would like to improve the situation so we do not have to manually configure existing and future blogs.
I'd like to start a discussion with you regarding this and see if it's an enhancement worth pursuing.
Details
After reviewing the plugin source, it looks like you are primarily using calls to the
update_option()
function. As I understand it, this function will update the options table associated with a specific site ID. So rather than storing the options in the global options table in the WordPress database, it will store them in a site specific table calledwp_XX_options
(XX is the site ID).Would it be possible to provide an option for users to use the
add_site_option()
function? I think this will amend the global options table. Is this something you have evaluated?Citation: https://codex.wordpress.org/Function_Reference/add_site_option
An alternative
I've also noticed that you have declared some default configuration parameters here:
https://github.com/auth0/wp-auth0/blob/master/lib/WP_Auth0_Options.php#L52
I would prefer not to make code changes to the plugin itself but I could try to extract the relevant parameters from a configuration export and then reinstall the plugin with those defaults set.
Conclusion
If you're aware of any reasons that this will not work, I would love to hear it. If there's anything I could do to help move this along faster, I'd be happy to try and help.
The text was updated successfully, but these errors were encountered: