fusio
fusio copied to clipboard
Saas products (question)
Sorry, i am still so new on this repo.
I want to achieve the for the belowing case.
I want to develop a system that allow user to register for free trial. But this trial account are created separated with demo .(i.e a playground , each register user have it own playground)
Problems; i defined all route for one application.
How to i automated set route to different database base on user authentication ?
Remarks: i motified the JWT token and added database name in the playload, so that i can know the user which requesting for which database but its a good solution ?
Hi, if I understand you correctly you could create an action which either invokes the real or demo action depending on the current user. Inside the action you could use the processor (https://www.fusio-project.org/documentation/php/$processor/execute) to invoke another action