SharinPix Token Viewer

circle-info

The SharinPix Token Viewer component permits the user to open any component using a token.

circle-exclamation
circle-info

Information:

This feature is only available on Lightning. It can be used:

  • On Page Builder

  • On Desktop

  • On Mobile

  • On Community Builder

Getting Started

To use the SharinPix Token Viewer component, you simply need to drag and drop the component from the Lightning App Builder onto your page layout.

Lightning Component Parameters

  • Token Field API Name: The API name of the field containing the SharinPix token.

  • SharinPix Secured Token Name: The name of the 'SharinPix Secured Token' Custom Metadata configured for the token viewer component. More information on how to configure the SharinPix Secured Token below.

  • Height: Used to specify the component's height. The default height is 500 (px).

circle-exclamation

SharinPix Secured Token Setting

The SharinPix Secured Token will be used to create a token that expires. The expired token will be used on the token viewer component. Using the SharinPix Secured Token, the Token Viewer component will not use the token stored in the Salesforce field directly; instead, it will generate a new token that expires. This adds a layer of security as the token stored on Salesforce, which may be non-expiring, is not exposed in the user's browser.

Steps to configure the SharinPix Secured Token:

  1. Go to Salesforce Setup

  2. Open Custom Metadata Types

  3. Click on Manage Records for SharinPix Secured Token Custom metadata type

  4. Insert a label and name

  5. For the Object name parameter, insert the object API name on which the SharinPix Token Viewer component has been added.

  6. For the Field name parameter, insert the field API name of the field containing the token to be expired.

  7. In the Expiration parameter, enter the number of minutes the token will live. The maximum allowed is 100.

  8. Check the Active checkbox to activate the setting.

Demo

A token of the SharinPix Album has been generated and inserted in the field 'token' as shown below:

circle-check

The picture below depicts a SharinPix Album in the SharinPix Token Viewer component:

Last updated

Was this helpful?