Open the FlexDeploy Actions page in the Chrome Web Store. Click Add to Chrome. The extension will then show up in the extension list in your Chrome window next to the URL bar. It will be updated automatically as new versions are available.By default, site access for the extension is across all sites. You can modify this from the chrome://extensions page to allow access to specific sites with a match pattern, or only allow on click.
Open the FlexDeploy Actions page in Firefox Add-Ons. Click Add to Firefox. The extension will then show up in the extension list in your Firefox window next to the URL bar. It can be set to automatically update as new versions are available, or they can be managed manually.
The first time the extension is opened, it will open to the Settings menu. Here, you can set the URL of your FlexDeploy instance for sending webhooks. There’s also an optional request token which can be used to verify any incoming webhook requests are coming from this extension.Two optional authentication properties are available on the Settings page: User API Token and Encryption Key. These properties were introduced mainly to support webhook authentication, which was released in FlexDeploy 11.2.0.0.
Provide an API Token created in FlexDeploy. (Accessible in FlexDeploy from Profile → Tokens).
The Encryption Key can be any 6-character code you will remember. It is used to encrypt the User API Token and is retained while the browser extension session is active, even when the popup is closed and reopened. When the browser is restarted, the key is cleared, so you must enter the same Encryption Key on the extension’s opening page to continue using the stored API Token.
From here, you can edit the included base actions or configure your own actions. Each action will be linked to some webhook URL defined by you, so you could have different actions for each webhook function you want to run in FlexDeploy. Using a base action should work for getting started, but you can read Using the Extension for more details on customizing actions.
The extension will require a new incoming webhook provider for each technology that you are working with. Here are the details on setting one up. If you aren’t sure how to get there, see the high-level details of how to create incoming webhooks.
Create the new Webhook Provider.
Add an encrypted property named TOKEN. Create a new credential and set the value to match the Request Token in your extension settings.
Navigate to the Match Script tab and write your Groovy script to verify an incoming webhook request is coming from the browser extension.
// This assumes that you have a value set for the request token setting in the browser extension// create a TOKEN property for it, and set both values to the same String.// It also assumes you are using Chrome.def tokenHeader = HTTP_HEADERS.get('x-fdtoken');def originHeader = HTTP_HEADERS.get('origin');if (tokenHeader && originHeader) { if (TOKEN.equals(tokenHeader) && "chrome-extension://paacbpidhiiepifmicloidcimomkkhlh".equals(originHeader)) { LOG.fine('FlexDeploy Extension is a match'); return true; }}return false;
Now, we can create a function to take our webhook payload and use its content to trigger some action in FlexDeploy. The webhook URI format of the base actions which are auto-loaded with your extension is /extension/<base action code>, but can be modified by editing the associated action in your extension. There are example functions for each technology on the Example Incoming Webhook Functions page. If you need help with the basics, see the incoming webhooks documentation.The following is a reference of the basic payload format which is sent from the browser extension. Action name and source URL are sent with each webhook and properties will vary based on the properties in your webhook action.Starting with FlexDeploy 11.2.0.0, webhook functions can require authentication (optional) using a FlexDeploy User API Token. To configure webhook authentication in the browser extension, provide the User API Token and a 6-character Encryption Key. For more details, see Authenticated Functions.
{ "actionName": "Name of action sent", "fromURL": "URL of the active window the sender was on when the webhook was sent", "properties": [ { "Property A Name": "Property A Value" }, { "Property B Name": "Property B Value" }, { "List Property C Name": ["Property C Value1", "Property C Value2", "Property C Value3"] } ]}
The extension will automatically open to the Send page the next time you open it. From here, you can choose an action, customize property values as needed, and send a webhook to FlexDeploy.If the webhook function requires authentication, you must configure the User API Token and Encryption Key in the extension. When you configure these in the extension settings, the token is encrypted using the provided key. When sending a webhook request, you can provide the encryption key to decrypt the token and use it for webhook authentication. This encryption key is persisted per session, so it will only be shown on the Send page for a new session when the key needs to be re-entered.
Assistant
Responses are generated using AI and may contain mistakes.