<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>General Embed Methods :: Delta BI Documentation (EN source)</title>
    <link>/developer/reference/extensibility/embedding/embed-api/pyramidembedclient/general/general-embed-methods/index.html</link>
    <description>General Embed Methods Methods and Properties in this section are general to the embed client and are available regardless of which type of embedding operation is going to be used (content, search or hub).&#xA;The methods handle the embed client initialization and authentication, while the properties expose details of the embedded client.&#xA;Methods init - initialize the embed client login - authenticate the user (username and password) against the host and automatically set the embed cookie loginWinAuth - authenticate the user with Windows Kerberos tokens against the host and automatically set the embed cookie loginSAMLAuth - authenticate the user with SAML tokens against the host and automatically set the embed cookie loginOpenIdAuth - authenticate the user with OpenID OAuth tokens against the host and automatically set the embed cookie setAuthToken - manually set the authentication token into the embed cookie getAuthToken - get the authentication token from the embed cookie SetAuthFailureCallback - set a functional call back when authentication fails Properties host - get the host address of the current embed client isClientLoaded - gets the status of the embed client isLoggedIn - gets whether the authentication cookie has been set Key Methods Click the links below for more on the key methods relating to embedded content, hub or search .</description>
    <generator>Hugo</generator>
    <language>en</language>
    <atom:link href="/developer/reference/extensibility/embedding/embed-api/pyramidembedclient/general/general-embed-methods/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Login</title>
      <link>/developer/reference/extensibility/embedding/embed-api/pyramidembedclient/general/login/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/developer/reference/extensibility/embedding/embed-api/pyramidembedclient/general/login/index.html</guid>
      <description>Login Authenticates the end user to perform embedding operations.&#xA;login(username?:string, password?:string, customdata?:string): string The login function, like initialize, authenticates the user and stores the result into the embed cookie. The optional customdata argument allows developers to inject custom data elements into the user’s session. The function returns the authentication token string. Example The following initializes a new embed client for the target instance of Pyramid and authenticates a new user “john” with custom date “USA”.</description>
    </item>
    <item>
      <title>LoginWindowsAuth</title>
      <link>/developer/reference/extensibility/embedding/embed-api/pyramidembedclient/general/loginwinauth/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/developer/reference/extensibility/embedding/embed-api/pyramidembedclient/general/loginwinauth/index.html</guid>
      <description>LoginWindowsAuth Authenticates the end user using an existing Windows Kerberos token to perform embedding operations with an SSO flow.&#xA;loginWindowsAuth(): string The login function, like initialize, authenticates the user and stores the result into the embed cookie. The function has no arguments - as the appropriate token is read in from the browser context running on the user’s Windows desktop. The function returns the authentication token string. Using Windows Authentication The assumption is that the hosting app is running in a browser that supports Windows Authentication; that Pyramid is using Active Directory as the Authentication provider; and that Windows Authentication has been chosen as the authentication method in Pyramid. Obviously, the application can only be launched from within a Windows desktop.</description>
    </item>
    <item>
      <title>LoginSamlAuth</title>
      <link>/developer/reference/extensibility/embedding/embed-api/pyramidembedclient/general/loginsamlauth/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/developer/reference/extensibility/embedding/embed-api/pyramidembedclient/general/loginsamlauth/index.html</guid>
      <description>LoginSamlAuth Authenticates the end user using an existing SAML token to perform embedding operations.&#xA;loginSamlAuth(samlToken: string): string The login function, like initialize, authenticates the user and stores the result into the embed cookie.&#xA;The function has one argument - SAML token.&#xA;The function returns the authentication token string.&#xA;Example The following initializes a new embed client for the target instance of Pyramid and authenticates a new user using the SAML token. The token needs to be derived from the SAML authentication into the host site and injected into the API as per the example below. Alternatively, the same process can be resolved using server-side code using the REST API’s directly.</description>
    </item>
    <item>
      <title>LoginOpenIdAuth</title>
      <link>/developer/reference/extensibility/embedding/embed-api/pyramidembedclient/general/loginopenidauth/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/developer/reference/extensibility/embedding/embed-api/pyramidembedclient/general/loginopenidauth/index.html</guid>
      <description>LoginOpenIdAuth Authenticates the end user using an existing OpenId OAuth token to perform embedding operations.&#xA;loginOpenIdAuth (openIdToken: string): string The login function, like initialize, authenticates the user and stores the result into the embed cookie. The function has one argument - OpenId OAuth token. The function returns the authentication token string. Example The following initializes a new embed client for the target instance of Pyramid and authenticates a new user using the OpenId token. The token needs to be derived from the OpenId authentication into the host site and injected into the API as per the example below. Alternatively, the same process can be resolved using server-side code using the REST API’s directly.</description>
    </item>
    <item>
      <title>Authentication Failure Callback</title>
      <link>/developer/reference/extensibility/embedding/embed-api/pyramidembedclient/general/setauthfailurecallback/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/developer/reference/extensibility/embedding/embed-api/pyramidembedclient/general/setauthfailurecallback/index.html</guid>
      <description>Authentication Failure Callback Triggers a function when the embed token has expired.&#xA;setAuthFailureCallback(callbackFunction): void This function is provided as a way to register a callback to another function to handle token failures or expiration. Example The following initializes a new embed client for the target instance of Pyramid and sets the authentication failure callback to a separate function called “AuthFailure”. If the token fails, AuthFailure will be called and can handle the process from there.</description>
    </item>
    <item>
      <title>Init</title>
      <link>/developer/reference/extensibility/embedding/embed-api/pyramidembedclient/general/init/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/developer/reference/extensibility/embedding/embed-api/pyramidembedclient/general/init/index.html</guid>
      <description>Init Initializes the main embed client.&#xA;init(): void or&#xA;init(username?:string, password?:string): void Use this to initialize the client after creating it, It is not required when using the “embed” function (which include the initialization in its sequence). Injecting the username and password values can also authenticate the user at the same time. Without supplying these details, the login must be called separately unless the authentication cookies has been set and saved otherwise. Example The following initializes a new embed client for the target instance of Pyramid and authenticates a new user “john”</description>
    </item>
    <item>
      <title>SetAuthToken</title>
      <link>/developer/reference/extensibility/embedding/embed-api/pyramidembedclient/general/setauthtoken/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/developer/reference/extensibility/embedding/embed-api/pyramidembedclient/general/setauthtoken/index.html</guid>
      <description>SetAuthToken Manually stores the authentication token (derived elsewhere) into the embed cookie.&#xA;setAuthToken(token:string): void This function is provided for instances where the authentication token is derived elsewhere (code behind or via custom REST API calls) Example The following initializes a new embed client for the target instance of Pyramid and sets the security token using a string in the client called “myToken” that was created elsewhere.</description>
    </item>
    <item>
      <title>GetAuthToken</title>
      <link>/developer/reference/extensibility/embedding/embed-api/pyramidembedclient/general/getauthtoken/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/developer/reference/extensibility/embedding/embed-api/pyramidembedclient/general/getauthtoken/index.html</guid>
      <description>GetAuthToken Manually retrieves the authentication token stored in the embed cookie.&#xA;getAuthToken(): string This function is provided to retrieve the current token value stored in the embed cookie. Example The following retrieves the current authentication token in the embed cookie - driving the authentication of the embed client.</description>
    </item>
    <item>
      <title>Host</title>
      <link>/developer/reference/extensibility/embedding/embed-api/pyramidembedclient/general/host/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/developer/reference/extensibility/embedding/embed-api/pyramidembedclient/general/host/index.html</guid>
      <description>Host The host property returns the current instance of Pyramid that the client is connected to.&#xA;pyramidEmbedApi.host: string Use this property to retrieve the current host that a given embed client is connected to.. Example The following initializes a new embed client for the target instance of Pyramid. The host property returns “https://analytics.pyramid.com”</description>
    </item>
    <item>
      <title>IsClientLoaded</title>
      <link>/developer/reference/extensibility/embedding/embed-api/pyramidembedclient/general/isclientloaded/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/developer/reference/extensibility/embedding/embed-api/pyramidembedclient/general/isclientloaded/index.html</guid>
      <description>IsClientLoaded The isClientLoaded property returns true if the embed client and its dependencies are loaded&#xA;pyramidEmbedApi.isClientLoaded: boolean Use this property to check if the embed client is fully loaded and ready for operations. Example The following initializes a new embed client for the target instance of Pyramid. The property returns “TRUE” if ready, otherwise “FALSE”;</description>
    </item>
    <item>
      <title>IsLoggedIn</title>
      <link>/developer/reference/extensibility/embedding/embed-api/pyramidembedclient/general/isloggedin/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/developer/reference/extensibility/embedding/embed-api/pyramidembedclient/general/isloggedin/index.html</guid>
      <description>IsLoggedIn The IsLoggedIn property returns true if the embed client has an authenticated user.&#xA;pyramidEmbedApi.isLoggedIn: boolean Use this property to check if the embed cookie has a valid authentication token. Example The following initializes a new embed client for the target instance of Pyramid. The property returns “TRUE” if authenticated, otherwise “FALSE”;</description>
    </item>
  </channel>
</rss>