fusio icon indicating copy to clipboard operation
fusio copied to clipboard

Saas products (question)

Open alexfok007 opened this issue 5 years ago • 1 comments

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 ?

alexfok007 avatar Mar 25 '19 11:03 alexfok007

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

chriskapp avatar Apr 06 '19 11:04 chriskapp