Skip to content

Commit e2a6e19

Browse files
authored
Update readme.md
Region based integration details.
1 parent 2bbc301 commit e2a6e19

File tree

1 file changed

+11
-11
lines changed
  • src/Umbraco.Cms.Integrations.Crm.Hubspot

1 file changed

+11
-11
lines changed

src/Umbraco.Cms.Integrations.Crm.Hubspot/readme.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,14 @@ Add this to an app setting in `Web.config`:
3131

3232
#### OAuth
3333

34-
Add the following app settings in `Web.config` making sure the references of the _Umbraco HubSpot Form Picker_ app are present:
34+
OAuth required parameters are represented by a group of constants in the _FormsController_ with the following values:
3535
```
36-
<appSettings>
37-
...
38-
<add key="Umbraco.Cms.Integrations.Crm.Hubspot.OAuthClientId" value="8b4db9a8-3b78-48bc-85b0-96a4211a1c83" />
39-
<add key="Umbraco.Cms.Integrations.Crm.Hubspot.OAuthScopes" value="oauth forms" />
40-
<add key="Umbraco.Cms.Integrations.Crm.Hubspot.OAuthAuthorizationBaseUrl" value="https://app-eu1.hubspot.com/oauth/authorize"/>
41-
<add key="Umbraco.Cms.Integrations.Crm.Hubspot.OAuthRedirectUrl" value="[your website URL]" />
42-
<add key="Umbraco.Cms.Integrations.OAuthProxyUrl" value="[Umbraco proxy URL]" />
43-
...
44-
</appSettings>
36+
OAuthClientId
37+
OAuthScopes
38+
OAuthProxyBaseUrl
39+
OAuthProxyEndpoint
4540
```
41+
4642
No two set of app settings will work simultaneously.
4743

4844
#### Debug Configuration
@@ -62,7 +58,11 @@ app settings and prompt the user a notification.
6258

6359
If OAuth is available, then the _Connect_ button will be enabled, prompting the user, on clicked,
6460
with the HubSpot authorization window. The retrieved access token will be saved into the database and
65-
used for future requests.
61+
used for future requests. _Revoke_ action will remove the access token from the database and the authorization process will need to be repeated.
62+
63+
When a form is selected, the user needs to toggle the region flag notifying whether the data is stored in EU or US. This is very important as
64+
it triggers the front-end JS script and the form creation depending on the region.
65+
6666

6767
### Front-end rendering
6868

0 commit comments

Comments
 (0)