sdk-codegen icon indicating copy to clipboard operation
sdk-codegen copied to clipboard

Using `_theme` with SSO Embed in Python SDK

Open TrangPham opened this issue 4 years ago • 3 comments
trafficstars

Hi,

I was attempting to use the instructions shown and the bottom of this documentation to modify the theme applied to the Embedded dashboard: https://docs.looker.com/admin-options/settings/themes#default_theme

In particular these params _theme={"show_title":false,"show_filters_bar":false,"text_tile_text_color":"blue"}

I'm using python 3.8, looker-sdk 7.20.0, looker 3.1 API and this method: create_sso_embed_url

I've tried adding the params to the body to pass in (which doesn't look like the model is set to take as input), putting it in the targe_url, manually adding it to the url and appending it after the url is returned by create_sso_embed_url. None of these ways worked for me. I was still seeing the filters and the dashboard title in the embed URL

TrangPham avatar Apr 01 '21 21:04 TrangPham

when you add it to the EmbedSsoParams.target_url does the create_sso_embed_url call throw an exception? maybe playing around with url encoding? If no exception is thrown (which might indicate an SDK specific problem) then my suggestion would be to reach out to Looker support for help troubleshooting how to get that Looker feature to work

joeldodge79 avatar Apr 01 '21 23:04 joeldodge79

Closing due to inactivity. If this is still an issue please create a new issue.

pfrisella avatar Feb 22 '23 20:02 pfrisella

Hi, I'm having the same issue here. I'm using Python 3.10 and looker-sdk 23.8.1. Like @joeldodge79 suggested, I added the encoded _theme={"show_title":false} to the target_url before calling create_sso_embed_url, no exception was thrown, but the dashboard rendered with the title.

akuisara avatar Jul 24 '23 19:07 akuisara