looker-open-source / sdk-codegen

One SDK to rule them all, and in the codegen bind them
MIT License
233 stars 195 forks source link

Using `_theme` with SSO Embed in Python SDK #548

Open TrangPham opened 3 years ago

TrangPham commented 3 years ago

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

joeldodge79 commented 3 years ago

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

pfrisella commented 1 year ago

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

akuisara commented 1 year ago

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.