You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First pass refactoring for SSO Login authentication flow (#59)
* Start refactoring to support both username and password auth, as well as SSO login flows
* Wrap up refactor
* Start cleaning up
* more cleanup
* Properly handle SSO Session expiration
* bump to release version 3.0.0
* start on docs
* start on docs
* start on docs
* update docs
* update readme
* update docs
* finishd ocs
* finishd ocs
### Pardot Username and Password Authentication Scheme deprecated in favor of Salesforce SSO Authentication.
34
+
35
+
From February 1, 2021 Pardot is removing the now legacy Pardot Username and Password authentication scheme ([Salesforce EOL Notice](https://help.salesforce.com/articleView?id=000353746&type=1&mode=1&language=en_US&utm_source=techcomms&utm_medium=email&utm_campaign=eol)).
36
+
37
+
You should switch to configuring authentication using the following method:
See [Offical Pardot Developer Documentation](https://developer.pardot.com/kb/authentication/) and [Salesforce OAuth Setup](https://help.salesforce.com/articleView?id=remoteaccess_oauth_flows.htm) for details on how to obtain the above required properties.
Copy file name to clipboardExpand all lines: README.md
+28-21Lines changed: 28 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,9 +4,18 @@
4
4
5
5
## What is it?
6
6
7
-
A fluent-ish style API client for Pardot's API (version 3 and 4).
7
+
This library is a fluent style API client for Pardot's API (version 3 and 4).
8
8
9
-
**Note** It currently is not fully featured/fully implemented. If there is a feature/end point that you
9
+
## Important Breaking Change to Pardot API
10
+
11
+
From February 1, 2021 Pardot is removing the ability to authenticate to the Pardot API using your Pardot username, password, and userkey ([Salesforce EOL Notice](https://help.salesforce.com/articleView?id=000353746&type=1&mode=1&language=en_US&utm_source=techcomms&utm_medium=email&utm_campaign=eol)).
12
+
This means that versions of this library **prior to 3.0.0** will cease to be able to authenticate to the Pardot Api.
13
+
14
+
Everyone is encouraged to update the library to version **3.0.0 or newer** and switch to using Salesforce SSO authentication prior to February 1, 2021.
15
+
To support Salesforce SSO authentication required backwards compatibility breaking changes to be made to this library, so please read the [2.x.x to 3.0.0 Migration Guide](3_0_0_migration_notes.MD)
16
+
which details the changes required to upgrade.
17
+
18
+
**Note** While most of Pardot's API is supported by this library, if there is a feature/end point that you
10
19
need that is not yet implemented, please read the **[How to Contribute](#how-to-contribute)** section, or **[Create an issue](https://github.com/Crim/pardot-java-client/issues)**
11
20
requesting it.
12
21
@@ -21,23 +30,31 @@ This client library is released on Maven Central. Add a new dependency to your
21
30
<dependency>
22
31
<groupId>com.darksci</groupId>
23
32
<artifactId>pardot-api-client</artifactId>
24
-
<version>2.1.0</version>
33
+
<version>3.0.0</version>
25
34
</dependency>
26
35
```
27
36
28
-
Example Code:
37
+
Example Code using Salesforce SSO Authentication:
29
38
```java
30
39
/*
31
-
* Create a new configuration object with your Pardot credentials.
40
+
* Create a new configuration object with your Salesforce SSO credentials.
32
41
*
33
42
* This configuration also allows you to define some optional details on your connection,
34
43
* such as using an outbound proxy (authenticated or not).
Official Documentation: [Authentication](http://developer.pardot.com/#authentication)
110
+
Official Documentation: [Authentication](https://developer.pardot.com/kb/authentication/)
96
111
97
-
Authenticating with Pardot's API using your Pardot Username, Password, and User Token.
112
+
- Authenticating with Pardot's API using your Salesforce SSO Username, Password, and Connected Application details. [See Example](src/main/java/com/darksci/pardot/api/Example.java#L37).
113
+
- Legacy authentication using your Pardot Username, Password, and User Token. [See Example](src/main/java/com/darksci/pardot/api/Example.java#L98).
98
114
99
115
### Accounts
100
116
Official Documentation: [Accounts](http://developer.pardot.com/kb/api-version-3/accounts/)
101
117
102
118
- Read
103
119
104
-
105
120
### Campaigns
106
121
Official Documentation: [Campaigns](http://developer.pardot.com/kb/api-version-3/campaigns/)
107
122
@@ -228,14 +243,6 @@ Official Documentation: [VisitorActivities](http://developer.pardot.com/kb/api-v
228
243
- Query
229
244
- Read
230
245
231
-
## Important Breaking Change to Pardot API
232
-
233
-
As of October 31, 2018 Pardot is disabling the TLS 1.0 encryption protocol. This means that versions of this library
234
-
**prior to 1.0.0** will cease to be able to connect to the Pardot Api.
235
-
236
-
Version 1.0.0+ updates the library to use TLS 1.1 and 1.2 protocols. Everyone is encouraged to update
237
-
the library prior to October 31st 2018.
238
-
239
246
## How to Contribute
240
247
241
248
Want to help implement the missing API end points? Fork the repository, write some code, and
0 commit comments