0
0
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:
Ben White 2024-11-18 17:30:44 -08:00 committed by GitHub
parent 5e8d1cbb55
commit bd0ca07e50
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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",
)