|
| 1 | +# Configuring providers |
| 2 | +All Superface tools have a *provider* as part of their configuration. The provider is where necessary elements such as API keys, and additional parameters that are needed to connect to an external service are defined. |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | +The providers are listed in alpabetical order of the name of the external service they represent. |
| 7 | + |
| 8 | +A fully configured provider will have a green dot next to it. If it's green, it's good to go. |
| 9 | + |
| 10 | +If there is a red dot next to the name then some additional configuration is needed. |
| 11 | + |
| 12 | +## Setting configurations |
| 13 | +To set up configuration options for a provider you can click on the cog icon to see the specific settings required. |
| 14 | + |
| 15 | +For example, here are the configuration parameters required for the Mixpanel provider shown in the image above. |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | +Typically a provider outlines the security configuration as well as any additional parameters that are required by the third-party API your tool is connecting to. In this case we can see that Mixpanel requires both of these. |
| 20 | + |
| 21 | +To set up your provider, fill out all of the blank fields and click **Save Changes**. |
| 22 | + |
| 23 | +## Provider file example |
| 24 | +Below you can see the provider file for Mixpanel. This is where the parameters and security scheme detals you can see on the screen are defined. |
| 25 | + |
| 26 | +```json |
| 27 | +{ |
| 28 | + "name": "mixpanel", |
| 29 | + "defaultService": "default", |
| 30 | + "parameters": [ |
| 31 | + { |
| 32 | + "name": "project_id", |
| 33 | + "description": "The ID of the Mixpanel project" |
| 34 | + }, |
| 35 | + { |
| 36 | + "name": "workspace_id", |
| 37 | + "description": "The ID of the workspace to query" |
| 38 | + } |
| 39 | + ], |
| 40 | + "services": [ |
| 41 | + { |
| 42 | + "baseUrl": "https://eu.mixpanel.com/api/query", |
| 43 | + "id": "default" |
| 44 | + } |
| 45 | + ], |
| 46 | + "securitySchemes": [ |
| 47 | + { |
| 48 | + "type": "http", |
| 49 | + "scheme": "basic", |
| 50 | + "id": "ServiceAccount" |
| 51 | + } |
| 52 | + ] |
| 53 | +} |
| 54 | +``` |
| 55 | + |
| 56 | +## Replacing a provider |
| 57 | +If you need to replace a provider at any time you can click on the edit icon to upload a new version. |
| 58 | + |
| 59 | + |
| 60 | + |
| 61 | +All tools can be updated by replacing the Comlink files at any time. |
0 commit comments