Skip to content

Commit

Permalink
Unbounce Connector (#2697)
Browse files Browse the repository at this point in the history
Co-authored-by: Kelsey Thomas <[email protected]>
Co-authored-by: vivek <[email protected]>
Co-authored-by: Soundarya <[email protected]>
Co-authored-by: Adrian Galvan <[email protected]>
  • Loading branch information
5 people authored Apr 26, 2023
1 parent 2ae6231 commit ea5975e
Show file tree
Hide file tree
Showing 6 changed files with 619 additions and 0 deletions.
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

0 comments on commit ea5975e

Please sign in to comment.