You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2022/07/22 04:51:40 UTC

[GitHub] [superset] sanjayssk opened a new issue, #20817: Embedded dashboard, how to handle token timeout issue

sanjayssk opened a new issue, #20817:
URL: https://github.com/apache/superset/issues/20817

   I successfully embedded a dashboard using embedDashboard with a guest token. But when I wait for the time out (5 mins) when the guest token is supposed to expire, doing any filter Apply interactions on the dashboard starts giving errors on permissions, same as if guest token is invalid. Shouldn't there be an event from embedDashboard on such errors so that I can then see if a refresh token solves the problem and prompt the user to refresh?
   
   #### How to reproduce the bug
   Embed any dashboard using embedDashboard. Wait for 5 minutes and then do some interaction. 
   
   ### Expected results
   The dashboard interactions should keep working once embedded
   
   ### Actual results
   Error like the following appears on any interaction on a popup.
   ```
   This endpoint requires the datasource app1_demo.tbl_1_locationwise, database or
               `all_datasource_access` permission
   ```
   
   ### Environment
   - Chrome Version 103.0.5060.134 (Official Build) (64-bit)
   - superset version: don't know as it says latest and the UI menu shows 0.0.dev. Docker image was used in April 2022.
   - python version: 3.9.5
   - node.js version: 12.16.1
   - any feature flags active: "EMBEDDED_SUPERSET": True,
   
   
   


-- 
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: notifications-unsubscribe@superset.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] sanjayssk closed issue #20817: Embedded dashboard, how to handle token timeout issue

Posted by GitBox <gi...@apache.org>.
sanjayssk closed issue #20817: Embedded dashboard, how to handle token timeout issue
URL: https://github.com/apache/superset/issues/20817


-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] sanjayssk commented on issue #20817: Embedded dashboard, how to handle token timeout issue

Posted by GitBox <gi...@apache.org>.
sanjayssk commented on issue #20817:
URL: https://github.com/apache/superset/issues/20817#issuecomment-1194181440

   My bad. I was using a constant for guest token in the hope that it will be used from a useState. It should be a function that returns a promise that gets resolved to token. Changing to function fixed it.


-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] alfredxinglkey commented on issue #20817: Embedded dashboard, how to handle token timeout issue

Posted by GitBox <gi...@apache.org>.
alfredxinglkey commented on issue #20817:
URL: https://github.com/apache/superset/issues/20817#issuecomment-1216810760

   > My bad. I was using a constant for guest token in the hope that it will be used from a useState. It should be a function that returns a promise that gets resolved to token. Changing to function fixed it.
   
   Hi, I am confused about how to embed dashboard with guest token, would you be willing to share sample code to help me implement embedding using guest token?


-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] apole commented on issue #20817: Embedded dashboard, how to handle token timeout issue

Posted by "apole (via GitHub)" <gi...@apache.org>.
apole commented on issue #20817:
URL: https://github.com/apache/superset/issues/20817#issuecomment-1560488993

   @sanjayssk , I am facing same issue, can you please elaborate on your fix? How is refreshed token being automatically picked up by embedDashboard and is it reloading the dashboard again or filters and state is presevred?


-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] sanjayssk commented on issue #20817: Embedded dashboard, how to handle token timeout issue

Posted by GitBox <gi...@apache.org>.
sanjayssk commented on issue #20817:
URL: https://github.com/apache/superset/issues/20817#issuecomment-1192180788

   BTW, a related question, I had installed this docker image in April and want to know what version it is. But UI menu shows 0.0.dev and nothing can be found by "docker image" command. How to find version? Shouldn't there by a release file or changelog file for the superset as a whole keeping a version to find in such cases?


-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org