Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## 4.0.1 (UNRELEASED)
## 4.1.0 (09/23/2026)
#### Feature Changes
- [https://github.com/Crim/pardot-java-client/issues/108](Issue-108) Salesforce SSO: Add support for Client Credentials Flow, Thanks for the contribution [FlipWarthog](https://github.com/FlipWarthog)!

#### Internal Dependency Updates
- Upgraded Jackson from version 2.11.4 to 2.13.2.
- Upgraded Jackson from version 2.11.4 to 2.22.2.
- Upgraded slf4j from version 1.7.30 to 1.7.36.
- Upgraded log4j2 from version 2.17.2 to 2.26.1 (used by tests only).


## 4.0.0 (06/03/2021)
Expand Down Expand Up @@ -208,4 +212,4 @@ the library prior to October 31st 2018.
- Add support for List and ListMembership API endpoints.

## 0.1.0 (08/15/2017)
- Initial release!
- Initial release!
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ This client library is released on Maven Central. Add a new dependency to your
<dependency>
<groupId>com.darksci</groupId>
<artifactId>pardot-api-client</artifactId>
<version>4.0.0</version>
<version>4.1.0</version>
</dependency>
```

Expand All @@ -50,6 +50,17 @@ final ConfigurationBuilder configuration = Configuration.newBuilder()
"YourPardotBusinessUnitId"
);

/*
* If you want to use the client_credentials authentication flow:
*/
Configuration.newBuilder()
// This configures the client using the 'Client Credentials' authentication flow.
.withSsoLogin(
"YourConnectedAppClientId",
"YourConnectedAppClientSecret",
"YourPardotBusinessUnitId"
);

/*
* Alternatively, if you want to use the authorization_code authentication flow,
* you can configure the client using a previously acquired refresh_token:
Expand Down Expand Up @@ -284,6 +295,7 @@ user friendly Plain Old Java Objects (POJOs).
[Crim](https://github.com/crim)
[LoRez](https://github.com/lorez)
[dai-00](https://github.com/dai-00)
[FlipWarthog](https://github.com/FlipWarthog)

## Releasing
Steps for performing a release:
Expand Down
8 changes: 4 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.darksci</groupId>
<artifactId>pardot-api-client</artifactId>
<version>4.0.1</version>
<version>4.1.0</version>
<packaging>jar</packaging>

<!-- Require Maven 3.5.0 -->
Expand Down Expand Up @@ -47,7 +47,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

<!-- Jackson version -->
<jackson.version>2.13.2</jackson.version>
<jackson.version>2.22.2</jackson.version>

<!-- Define which version of junit you'll be running -->
<junit.version>4.13.2</junit.version>
Expand All @@ -58,7 +58,7 @@
<checkstyle.version>8.29</checkstyle.version>

<!-- Log4J Version -->
<log4j2.version>2.17.2</log4j2.version>
<log4j2.version>2.26.1</log4j2.version>
<slf4j.version>1.7.36</slf4j.version>

<!-- test toggling -->
Expand Down Expand Up @@ -363,4 +363,4 @@
</build>
</profile>
</profiles>
</project>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import com.darksci.pardot.api.parser.prospect.ProspectCustomFieldDeserializer;
import com.darksci.pardot.api.response.customfield.ProspectCustomFieldValue;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.PropertyNamingStrategy;
import com.fasterxml.jackson.databind.PropertyNamingStrategies;
import com.fasterxml.jackson.databind.json.JsonMapper;
import com.fasterxml.jackson.dataformat.xml.JacksonXmlModule;
import com.fasterxml.jackson.dataformat.xml.XmlMapper;
Expand Down Expand Up @@ -73,7 +73,7 @@ public static XmlMapper newInstance() {
// Configure it
mapper
.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false)
.setPropertyNamingStrategy(PropertyNamingStrategy.SNAKE_CASE)
.setPropertyNamingStrategy(PropertyNamingStrategies.SNAKE_CASE)
.registerModule(new JodaModule())
.setDateFormat(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"));

Expand Down
Loading