Water-Systems-Management-UCM / Waterspout

Server side API for ag water optimization model runner
MIT License
2 stars 0 forks source link

Account Login and Tokens #4

Closed nickrsan closed 3 years ago

nickrsan commented 4 years ago

Make it so that model runs only happen in the context of a particular user, using their tokens to run the model and associate it with their account.

nickrsan commented 4 years ago

I'm moving some of this up to the current milestone because I'm working on it now and it'll be easier to make everything work by user now than it will be later

nickrsan commented 4 years ago

Still need to change how we set and select the current model area the user is working in. We might want to select a per-user default model area, then have a Django permission that specifies if they're allowed to change their model area, at which point, they see an option in the interface. This is mostly a pretty advanced feature though since in our current deployment plans, installs won't have more than one model area. But we still need to do something to stop hardcoding the organization/model area IDs into stormchaser - it needs to come from the API or a user definition in the application in some way.

nickrsan commented 3 years ago

Implemented Model Area selector for those with access to multiple areas.