Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unbounce Connector #2697

Merged
merged 19 commits into from
Apr 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ The types of changes are:
- Endpoints to save the new-style Privacy Preferences with respect to a fides user device id [#3132](https://github.com/ethyca/fides/pull/3132)
- Support `privacy_declaration` as a resource type for custom fields [#3149](https://github.com/ethyca/fides/pull/3149)
- Expose `id` field of embedded `privacy_declarations` on `system` API responses [#3157](https://github.com/ethyca/fides/pull/3157)
- Access and erasure support for Unbounce [#2697](https://github.com/ethyca/fides/pull/2697)

### Changed

Expand Down
124 changes: 124 additions & 0 deletions data/saas/config/unbounce_config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
saas_config:
fides_key: <instance_fides_key>
name: Unbounce
type: unbounce
description: A sample schema representing the Unbounce connector for Fides
version: 0.1.0

connector_params:
- name: domain
default_value: api.unbounce.com
- name: client_id
label: Client ID
- name: client_secret
- name: redirect_uri
lable: Redirect URI

client_config:
protocol: https
host: <domain>
authentication:
strategy: oauth2_authorization_code
configuration:
authorization_request:
method: GET
path: /oauth/authorize
query_params:
- name: client_id
value: <client_id>
- name: redirect_uri
value: <redirect_uri>
- name: response_type
value: code
- name: state
value: <state>
token_request:
method: POST
path: /oauth/token
headers:
- name: Content-Type
value: application/x-www-form-urlencoded
body: |
{
"client_id": "<client_id>",
"client_secret": "<client_secret>",
"grant_type": "authorization_code",
"code": "<code>",
"redirect_uri": "<redirect_uri>"
}
refresh_request:
method: POST
path: /oauth/token
headers:
- name: Content-Type
value: application/x-www-form-urlencoded
body: |
{
"client_id": "<client_id>",
"client_secret": "<client_secret>",
"grant_type": "refresh_token",
"refresh_token": "<refresh_token>"
}

test_request:
method: GET
headers:
- name: Accept
value: application/json
path: /pages

endpoints:
- name: pages
requests:
read:
method: GET
path: /pages
headers:
- name: Accept
value: application/json
data_path: pages
param_values:
- name: placeholder
identity: email
- name: leads
requests:
read:
method: GET
path: /pages/<page_id>/leads/
headers:
- name: Accept
value: application/json
data_path: leads
postprocessors:
- strategy: filter
configuration:
field: form_data.email
value:
identity: email
exact: false
case_sensitive: false
param_values:
- name: page_id
references:
- dataset: <instance_fides_key>
field: pages.id
direction: from
delete:
method: POST
path: /pages/<page_id>/lead_deletion_request
grouped_inputs: [page_id, lead_id]
param_values:
- name: page_id
references:
- dataset: <instance_fides_key>
field: leads.page_id
direction: from
- name: lead_id
references:
- dataset: <instance_fides_key>
field: leads.id
direction: from
body: |
{
"lead_ids": ["<lead_id>"]
}
141 changes: 141 additions & 0 deletions data/saas/dataset/unbounce_dataset.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
dataset:
- fides_key: <instance_fides_key>
name: unbounce
description: A sample dataset representing the Unbounce connector for Fides
collections:
- name: pages
fields:
- name: subAccountId
data_categories: [system.operations]
fidesops_meta:
data_type: integer
- name: integrations
- name: integrationsCount
data_categories: [system.operations]
fidesops_meta:
data_type: integer
- name: integrationsErrorsCount
data_categories: [system.operations]
fidesops_meta:
data_type: integer
- name: id
data_categories: [system.operations]
fidesops_meta:
data_type: string
- name: url
data_categories: [system.operations]
fidesops_meta:
data_type: string
- name: metadata
fidesops_meta:
data_type: object
fields:
- name: documentation
data_categories: [system.operations]
fidesops_meta:
data_type: string
- name: location
data_categories: [system.operations]
fidesops_meta:
data_type: string
- name: related
fidesops_meta:
data_type: object
fields:
- name: leads
data_categories: [system.operations]
fidesops_meta:
data_type: string
- name: subAccount
data_categories: [system.operations]
fidesops_meta:
data_type: string
- name: formFields
data_categories: [system.operations]
fidesops_meta:
data_type: string
- name: createdAt
data_categories: [system.operations]
fidesops_meta:
data_type: string
- name: name
data_categories: [system.operations]
fidesops_meta:
data_type: string
- name: state
data_categories: [system.operations]
fidesops_meta:
data_type: string
- name: lastPublishedAt
- name: variantsCount
data_categories: [system.operations]
fidesops_meta:
data_type: integer
- name: domain
data_categories: [system.operations]
fidesops_meta:
data_type: string
- name: leads
fields:
- name: created_at
data_categories: [system.operations]
fidesops_meta:
data_type: string
- name: id
data_categories: [user.unique_id]
fidesops_meta:
data_type: string
primary_key: True
- name: extra_data
fidesops_meta:
data_type: object
fields:
- name: cookies
- name: form_data
fidesops_meta:
data_type: object
fields:
- name: email
data_categories: [user.contact.email]
fidesops_meta:
data_type: string
- name: last_name
data_categories: [user.name]
fidesops_meta:
data_type: string
- name: first_name
data_categories: [user.name]
fidesops_meta:
data_type: string
- name: page_id
data_categories: [system.operations]
fidesops_meta:
data_type: string
- name: variant_id
data_categories: [system.operations]
fidesops_meta:
data_type: string
- name: metadata
fidesops_meta:
data_type: object
fields:
- name: documentation
data_categories: [system.operations]
fidesops_meta:
data_type: string
- name: location
data_categories: [system.operations]
fidesops_meta:
data_type: string
- name: related
fidesops_meta:
data_type: object
fields:
- name: page
data_categories: [system.operations]
fidesops_meta:
data_type: string
- name: sub_account
data_categories: [system.operations]
fidesops_meta:
data_type: string
11 changes: 11 additions & 0 deletions data/saas/icon/unbounce.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading