mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-21 13:39:22 +01:00
fix: Hubspot scopes (#26264)
This commit is contained in:
parent
5e8d1cbb55
commit
bd0ca07e50
@ -166,7 +166,11 @@ class OauthIntegration:
|
||||
token_info_config_fields=["hub_id", "hub_domain", "user", "user_id"],
|
||||
client_id=settings.HUBSPOT_APP_CLIENT_ID,
|
||||
client_secret=settings.HUBSPOT_APP_CLIENT_SECRET,
|
||||
scope="tickets crm.objects.contacts.write sales-email-read crm.objects.companies.read crm.objects.deals.read crm.objects.contacts.read crm.objects.quotes.read analytics.behavioral_events.send behavioral_events.event_definitions.read_write",
|
||||
scope="tickets crm.objects.contacts.write sales-email-read crm.objects.companies.read crm.objects.deals.read crm.objects.contacts.read crm.objects.quotes.read",
|
||||
additional_authorize_params={
|
||||
# NOTE: these scopes are only available on certain hubspot plans and as such are optional
|
||||
"optional_scope": "analytics.behavioral_events.send behavioral_events.event_definitions.read_write"
|
||||
},
|
||||
id_path="hub_id",
|
||||
name_path="hub_domain",
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user