Re: RC3 table search box issue / Jinja - accessing Flask g

2020-04-11 Thread Dennis Meyer
Hi Max, thanks for the detailed response. We‘re already using RLS using RC3 (with the patch). In here the DB is currently used for making sure User rights are accounted for. Having said that we‘d prefer to use security filtering based on JWT parameter. So adding parameters on login to Jinja

Re: RC3 table search box issue / Jinja - accessing Flask g

2020-04-10 Thread Maxime Beauchemin
Accessing `flask.g` in SQL Lab (in async mode) is tricky because the execution is run on a celery worker where there's no Flask context. I think we've done work before to make "current_username" available across the board (async/not async).