CORS issue can be fixed on openwisp-radius by adding django-cors: https://github.com/ottoyiu/django-cors-headers Will review asap. In the meantime I suggest to keep improving your application by adding the information you discover while building the prototype.
Federico On Wed, Apr 3, 2019 at 11:05 PM Vivek Rajput <v.rajpu...@gmail.com> wrote: > Hi, > I tried making the prototype. And this is what I have made > https://github.com/Vivekrajput20/openwisp-login-app. > <https://github.com/Vivekrajput20/openwisp-login-app> > It's a very basic react app with a navbar and a login form. All the orgs > can write their configuration in a json file inside orgConfigurations > directory. I have written a node script which runs everytime a dev servers > starts or app is build for production. It copies valid data of all the json > files to config.json in /src/ directory. Data of all the orgs in > config.json is parsed and stored in redux store and current org is > determined based on the route parameter. It has basic multi tenancy > functionalities like header links, links in login form are dynamically > loaded according to current org. Also it makes ajax request to the loginApi > url provided in the config of an org and can be tested using browsers > network tab. I did not do anything with the response because of CORS issue. > You can access the login page at localhost:3000/{slug} where slug is slug > field of org provided in the config json. I have pushed > default-configurations and two more configurations for testing puropses. > What extra features should I add to the protoype? > > -- > You received this message because you are subscribed to the Google Groups > "OpenWISP" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to openwisp+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "OpenWISP" group. To unsubscribe from this group and stop receiving emails from it, send an email to openwisp+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.