superset icon indicating copy to clipboard operation
superset copied to clipboard

Bypassing the login for Supreset iframe in Webpage

Open Sarrae1406 opened this issue 9 years ago • 10 comments

I am using Superset version 0.15.1. I create a slice and use its iframe to embed into my webpage. When I do so, it directs me to superset login on the webpage.

Is there some way I can bypass the login or may be pass the credentials through iFrame in advance ?

I have tried removing the slice owner name, but that doesn't quite work.

My Iframe is as follows :

      <iframe
        src="http://ServerIP:PortNo/superset/explore/table/8/?goto_dash=false&bottom_margin=auto&force=false&new_dashboard_name=&slice_name=User+Registration&y_axis_zero=false&y_axis_label=Users+Registered&resample_fillmethod=&save_to_dashboard_id=&line_interpolation=linear&add_to_dash=false&reduce_x_ticks=false&rolling_periods=&show_controls=false&granularity_sqla=registration_date&x_axis_label=&rolling_type=None&datasource_type=table&new_slice_name=&flt_op_0=in&viz_type=bar&since=100+years+ago&y_log_scale=false&time_compare=&rdo_save=overwrite&until=now&collapsed_fieldsets=&show_bar_value=false&resample_rule=&datasource_id=8&period_ratio_type=growth&show_brush=false&y_axis_format=.3s&x_axis_showminmax=y&x_axis_showminmax=false&metrics=sum__count&show_legend=false&flt_eq_0=&flt_col_0=&timeseries_limit_metric=&resample_how=&standalone=true&where=&num_period_compare=&userid=1&previous_viz_type=bar&groupby=count&rich_tooltip=y&rich_tooltip=false&limit=50&x_axis_format=smart_date&datasource_name=User+Registration&contribution=false&time_grain_sqla=Time+Column&having=&bar_stacked=false"
        width="600"
        height="400"
        seamless frameBorder="0" scrolling="no">
      </iframe>

Sarrae1406 avatar Jan 05 '17 07:01 Sarrae1406

@Sarrae1406 I am working on workaround for this issue.

My use case is I want to make dashboard available to anyone with secured URL.

  1. I added the permissions required to Public role, which is can dashboard on Superset.
  2. I bypass the security check at particular endpoint so that whenever it receives and verifies a hash from frontend, it bypass the check and vice versa.

songyanho avatar May 09 '17 03:05 songyanho

I'm very interested in this feature. Are you still working on it, @songyanho ?

steffenbrand avatar Jul 26 '17 11:07 steffenbrand

Very interested in this feature

pascaldls avatar Nov 03 '17 10:11 pascaldls

Any news ?

ripoul avatar Nov 29 '17 09:11 ripoul

@songyanho This feature will be awesome once released. Any updates on this? I can also jump in and help if you have started working on this.

deadlocks avatar Feb 10 '18 13:02 deadlocks

Any news on this ?

alexjacquot avatar May 17 '18 12:05 alexjacquot

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 10 '19 08:04 stale[bot]

Any updates on this issue?

joseph-luketelo avatar Mar 30 '20 17:03 joseph-luketelo

Hi guys, You may find this article helpful

https://medium.com/@sairamkrish/apache-superset-custom-authentication-and-integrate-with-other-micro-services-8217956273c1

romens96 avatar Jan 26 '21 03:01 romens96

can anyone please tell how to fetch value of guest token in superset_config.py file ...as in url am passing token and that token need to verify in config file so it bypass the login screen of superset for user. http:/localhost.com:8080/login?token=1234&next=/superset/dashboard/11?standalone=true

Thanks in advance!!!!!!

falgunifb avatar Feb 03 '23 10:02 falgunifb