From 7e8f69ecdfb1feb9f8bbfb386c5c7b20e59ae910 Mon Sep 17 00:00:00 2001 From: Jonathon Batson Date: Thu, 18 Jan 2024 09:21:56 +1000 Subject: [PATCH] docs: update embedded readme with user params context (#25800) --- superset-embedded-sdk/README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/superset-embedded-sdk/README.md b/superset-embedded-sdk/README.md index 7e05d94a6ce1d..94c759a528d94 100644 --- a/superset-embedded-sdk/README.md +++ b/superset-embedded-sdk/README.md @@ -76,6 +76,10 @@ Guest tokens can have Row Level Security rules which filter data for the user ca The agent making the `POST` request must be authenticated with the `can_grant_guest_token` permission. +Within your app, using the Guest Token will then allow authentication to your Superset instance via creating an Anonymous user object. This guest anonymous user will default to the public role as per this setting `GUEST_ROLE_NAME = "Public"`. ++ ++The user parameters in the example below are optional and are provided as a means of passing user attributes that may be accessed in jinja templates inside your charts. + Example `POST /security/guest_token` payload: ```json