Skip to main content

What’s New

Qrvey 8.7
Version 8.7 of the Qrvey platform is now available to customers! This version includes new features including area charts, the ability to pivot and export data, as well as numerous bug fixes and performance improvements.
Learn More
Qrvey 8.6
Version 8.6 of the Qrvey platform is now available to customers. This version includes several new feature enhancements and performance improvements.
Learn More
Required Update for 8.5.1
Attention 8.5.1 customers: for any 8.5.1 instance deployed prior to 08/05/2024, an update is required to ensure you are running the latest images.
Learn More
Qrvey 8.5
Version 8.5 (LTS) of the Qrvey platform is now available to customers. This version includes several new features and performance improvements.
Learn More
End-of-life Schedule
We've added a new article that lists the features and endpoints that have been scheduled for deprecation. All features and endpoints will be supported for (1) year after the release date of the LTS version that contains the alternative.
Learn More
Version: 8.7

Widget Authentication

When embedding Qrvey widgets in your applications, you have to authenticate to authorize use of the widget.

Qrvey widgets offer two authentication methods:

  • API Key — for dev & testing only. A quick and easy, but insecure way to test widgets.
  • Qrvey Security Token — for production use cases. Backend-to-backend authentication that protects secrets.

For widgets that use the Download Manager or End User Personalization features, a clientid may be required in addition to or in place of userId. For more details on clientid, please see Multi Tenant Security Architecture. Please refer to the relevant widget's documentation and consider your implementation needs to determine which should be provided.

For the system to recognize a clientid, you must pass it in when you generate the Qrvey Security Token. You cannot pass it directly on a widget's config object as you do with many other params during API Key Authentication during development and testing.

API Key Authentication

WARNING: This method is for dev-mode only. Exposing an API Key on the frontend is insecure.

  1. Embed the widget and configure as desired.
  2. Place the apiKey, domain, and any other parameters required for the widget directly in its config object.
  3. Configure any other parameters as desired.
<script>
var config = { // Example uses "var" to ensure it is in the global scope.
apiKey: "<your_private_api_key>",
domain: "https://<your_qrvey_domain>",
userId: "OIJdafif-",
appId: "fo3454svz",
// ... Configure other params as desired.
};
</script>

Qrvey Security Token Authentication

Use a Qrvey Security Token for secure, production-ready authentication.

For simple examples, please see our CodePen for the Dashboard Builder - QV Token or Dashboard View - QV Token.

  1. First, from your backend infrastructure, generate a Qrvey Security Token, and ensure that any parameters containing sensitive information, such as userid and appid, are passed into the request body and encrypted as a QV Token.

    Note: Passing larger numbers of parameters into a QV Token will lead to performance issues. It is advised to encrypt sensitive information only.

  2. Pass the Qrvey Security Token to the widget configuration object in your frontend, along with the domain.
    This ensures that every request made by the widget through the Qrvey System includes the encrypted token in the request header, preventing malicious users from extracting sensitive information.

  3. Configure any additional parameters as desired.

<script>
var config = { // Example uses "var" to ensure it is in the global scope.
qvToken: '<qv_token>', // Required. Qrvey Security Token.
domain: 'https://<your_qrvey_domain>', // Required. Specify your Qrvey domain.
// ... Configure other params as desired.
};
</script>