pub struct EmbedTokenResponse {
pub token: Option<Option<String>>,
pub expiration: Option<Option<String>>,
pub raw_app: bool,
pub sandbox: bool,
pub app_path: Option<Option<String>>,
pub workspace_id: Option<Option<String>>,
pub sdk_scopes: Option<Option<Vec<String>>>,
pub viewer_email: Option<Option<String>>,
}Fields§
§token: Option<Option<String>>Scoped token for the app. For sandboxed low-code apps this is the embed token handed to the opaque iframe. For a raw app it is the viewer-scoped frontend SDK token, returned only when the app is sandboxed, its policy declares frontend_sdk_scopes, and the request carries sdk_consent=true. Absent for anonymous viewers and whenever no token is needed.
expiration: Option<Option<String>>Expiration of the embed token.
raw_app: boolRaw apps render single-iframe and skip the opaque-viewer indirection and the embed token entirely. A sandboxed one may still carry a token here: the viewer-scoped frontend SDK token, which is a different credential from the low-code embed token.
sandbox: boolPublisher opted this app into sandbox isolation. When false the viewer runs the app same-origin with its full session.
app_path: Option<Option<String>>The resolved app path; the embedder uses it to scope the app’s backing localStorage per app.
workspace_id: Option<Option<String>>The resolved workspace; pairs with app_path so apps at the same path in different workspaces don’t share a localStorage store.
sdk_scopes: Option<Option<Vec<String>>>Sandboxed raw apps: scopes the app policy declares for the frontend SDK token. Null when the app is unsandboxed, however the policy reads. The viewer renders these in the permission prompt; token stays absent until the endpoint is re-called with sdk_consent=true.
viewer_email: Option<Option<String>>The caller’s own email, returned alongside sdk_scopes so the viewer can key its stored "do not ask again" per person.
Implementations§
Source§impl EmbedTokenResponse
impl EmbedTokenResponse
pub fn new(raw_app: bool, sandbox: bool) -> EmbedTokenResponse
Trait Implementations§
Source§impl Clone for EmbedTokenResponse
impl Clone for EmbedTokenResponse
Source§fn clone(&self) -> EmbedTokenResponse
fn clone(&self) -> EmbedTokenResponse
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more