nytai commented on issue #9597:
URL: https://github.com/apache/superset/issues/9597#issuecomment-946937060


   Yes, unfortunately the cache warmup code is missing auth. It should be 
fairly simple to pass auth cookies in the request though, most of the code is 
already in superset. There's a function that returns auth cookies given a user 
(can use the `THUMBNAIL_SELENIUM_USER` config, as that user should be an admin 
user), it lives 
[here](https://github.com/apache/superset/blob/690e27e5fdc393483b1099b6bf1f897201a64726/superset/utils/machine_auth.py#L68).
 So you would simply have to add the code that grabs the cookies and then in 
each [chart 
request](https://github.com/apache/superset/blob/11260b31179d93bac8e1cd327ffbb0fed91d23aa/superset/tasks/cache.py#L291)
 include the `Cookies` header. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to