ryansutherlandignite
Forum Replies Created
-
Forum: Plugins
In reply to: [Login by Auth0] Migrating between environments – Auth0 Not ReadyHey Josh,
I understand this ticket is resolved, however, got a related question.
We are running a multisite. We’ve used the PHP constant AUTH0_ENV_DEFAULT_LOGIN_REDIRECTION to help get passed the issue of serialized data changes when migrating between environments, however, naturally the default login redirection url should be different for each site on the multisite. eg multisite.com/site2/ and multisite.com/site3/ etc
Each site will actually have a unique auth0 application.
My guess is I will need to look into a way to import/export our db between environments in a manner that handles serialized data… potentially via the WP CLI…
Before I go down this path, do you have any other suggestions? My guess is we are not the first customers to run a multisite using auth0
Forum: Plugins
In reply to: [Login by Auth0] Migrating between environments – Auth0 Not ReadyHi Josh,
Great! Thanks this works
Forum: Plugins
In reply to: [Login by Auth0] Migrating between environments – Auth0 Not ReadyHi @auth0josh – Yep you are right, its to do with the serialization.
Its because the default login redirection setting appears to be auto populated with the site url. I tried removing it so that I can rely on the constant instead, however, it appears that even with AUTH0_ENV_DEFAULT_LOGIN_REDIRECTION defined, the setting is still stored in the db.
As such, when I do my find and replace for the site url eg production.mysite.com to local.mysite.com, it updates the serialized value and then fails.
Have you got any suggestions?