GithubHelp home page GithubHelp logo

demo_secure_settings's Introduction

Demo App Test Secure Settings Feature

In the Zendesk App Framework, you're able to set secure settings within your app.Secure settings are used to conceal sensitive information within an app's settings while making AJAX requests. A setting is defined as secure by applying the value true to the secure property when first creating a setting parameter. This application creates two secure settings within the Zendesk application and then displays making calls to a remote web page with those settings.

The first request showcases a GET request to a remote server passing the secure setting data as arguments within the query string.

The second request showcases a POST request to a remote server where secure setting data is passed in the request body.

You'll see that once secure settings are entered they are not redisplayed in the app's settings page. This demonstration is meant to supplement Zendesk's Developer Documentation on Using Secure Settings.

Getting started

Follow these steps to get a local copy up and running.

Prerequisites

  • Zendesk Command Line (ZCLI)

Using Zendesk Command Line

Installation

1. Clone the repo

git clone https://github.com/zendesk/demo_secure_settings.git

2. Install the app

Run zcli apps:create and enter your admin and test instance information

When prompted in the terminal, enter a value for setting.token & setting.subdomain. Currently, in the manifest.json you'll find that default values have been set. Feel free to reuse or enter new values. For the testing purposes of this application, it is recommended to use 5 characters or less for the token and subdomain values.

3. Test application

Because it's a ticket_sidebar app, select any ticket in your Support instance to open the application. Once opened, click the app's 'Call Remote Server' button.

You should see the values you entered for token and subdomain appear in the app window.

Notes

  • The remote server used is https://httpbin.org

  • For your own remote server, include the subdomain in the domainWhitelist value of your manifest.json

  • Secure Settings has a known issue for local testing which is why this application needs to be installed to work properly

  • For more details, please see the documented Github issue here

Additional Resources

Issues

You can create an issue on Github, reach out in our Developer Community, or report the issue in the Zendesk Developers Slack group.

demo_secure_settings's People

Contributors

ericagirges avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.