Hello!
At UAMx we need the users to accept the terms and conditions after authenticating in the platform, as a simple form with a checkbox saying “I accept the Terms and Conditions”
To do so we have implemented a Django plugin with the proper django app, which exposes a url with the form and has a middleware to listen to a number of paths and redirect the user to the acceptance form.
The fact is that this middleware works fine for paths like “dashboard”, “courses”, “account/settings”, etc… but it doesn’t seem to work with “learning” paths. This is annoying because the “learning” path is mostly the only one used by any of our users…
I think it can be related with the fact that the learning path is an MFE and for some reason middlewares do not apply there
So, is there any way to capture requests made to an MFE like learning?
I was thinking about adding an AUTHENTICATION_BACKEND to preform this redirection, but as middleware apparently affects to every request I just let it go.
Thanks in advance for any help
Regards
PD: Just in case, I already tried with filters (but apparently there was none that cover my requirements) and signals (but I was unable to redirect inside signals)