Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: okta/okta-sdk-java
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: okta-sdk-root-19.0.0
Choose a base ref
...
head repository: okta/okta-sdk-java
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: okta-sdk-root-19.0.1
Choose a head ref
  • 4 commits
  • 9 files changed
  • 2 contributors

Commits on Sep 23, 2024

  1. Release pr 19.0.0 (#1560)

    * [maven-release-plugin] prepare release okta-sdk-root-19.0.0
    
    * [maven-release-plugin] prepare for next development iteration
    
    * Updated README and pom with latest version
    arvindkrishnakumar-okta authored Sep 23, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    ac4a6f1 View commit details

Commits on Oct 3, 2024

  1. Bump com.okta:okta-parent from 33 to 35 (#1565)

    arvindkrishnakumar-okta authored Oct 3, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    79dc906 View commit details

Commits on Oct 4, 2024

  1. OKTA-803484: Fix deserialization issue with `BrandsApi::listBrandDoma…

    …ins()` response (#1566)
    
    OKTA-803484: Fix deserialization issue with BrandsApi::listBrandDomains() response
    arvindkrishnakumar-okta authored Oct 4, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    882a1fe View commit details
  2. Verified

    This commit was signed with the committer’s verified signature.
    arvindkrishnakumar-okta Arvind Krishnakumar
    Copy the full SHA
    2f8ab37 View commit details
Showing with 30 additions and 14 deletions.
  1. +2 −1 README.md
  2. +1 −1 api/pom.xml
  3. +11 −0 api/src/main/resources/custom_templates/ApiClient.mustache
  4. +1 −1 coverage/pom.xml
  5. +1 −1 examples/pom.xml
  6. +1 −1 examples/quickstart/pom.xml
  7. +1 −1 impl/pom.xml
  8. +1 −1 integration-tests/pom.xml
  9. +11 −7 pom.xml
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -54,7 +54,7 @@ You can learn more on the [Okta + Java][lang-landing] page in our documentation.

This library uses semantic versioning and follows Okta's [library version policy](https://developer.okta.com/code/library-versions/).

:heavy_check_mark: The latest stable major version series is: 18.x.x
:heavy_check_mark: The latest stable major version series is: 19.x.x

| Version | Status |
|-------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------|
@@ -69,6 +69,7 @@ This library uses semantic versioning and follows Okta's [library version policy
| 16.x.x | :heavy_check_mark: Stable ([see changes](https://github.com/okta/okta-sdk-java/releases/tag/okta-sdk-root-16.0.0)) |
| 17.x.x | :heavy_check_mark: Stable ([see changes](https://github.com/okta/okta-sdk-java/releases/tag/okta-sdk-root-17.0.0)) |
| 18.x.x | :heavy_check_mark: Stable ([see changes](https://github.com/okta/okta-sdk-java/releases/tag/okta-sdk-root-18.0.0)) |
| 19.x.x | :heavy_check_mark: Stable ([see changes](https://github.com/okta/okta-sdk-java/releases/tag/okta-sdk-root-19.0.0)) |

The latest release can always be found on the [releases page][github-releases].

2 changes: 1 addition & 1 deletion api/pom.xml
Original file line number Diff line number Diff line change
@@ -21,7 +21,7 @@
<parent>
<groupId>com.okta.sdk</groupId>
<artifactId>okta-sdk-root</artifactId>
<version>19.0.0-SNAPSHOT</version>
<version>19.0.1</version>
</parent>

<artifactId>okta-sdk-api</artifactId>
11 changes: 11 additions & 0 deletions api/src/main/resources/custom_templates/ApiClient.mustache
Original file line number Diff line number Diff line change
@@ -178,6 +178,7 @@ protected List<ServerConfiguration> servers = new ArrayList<ServerConfiguration>
objectMapper.enable(SerializationFeature.INDENT_OUTPUT);
objectMapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING);
objectMapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING);
objectMapper.enable(DeserializationFeature.ACCEPT_SINGLE_VALUE_AS_ARRAY);
{{#joda}}
objectMapper.registerModule(new JodaModule());
{{/joda}}
@@ -900,6 +901,16 @@ protected List<ServerConfiguration> servers = new ArrayList<ServerConfiguration>
return null;
}

// some responses of list type contain a root element that need to be stripped before passing to ObjectMapper
if (valueRawType.getTypeName().contains("java.util.List")) {
if (content.startsWith("{\"")) {
// remove leading {"blahblah":
content = content.substring(content.indexOf(":") + 1);
// remove trailing }
content = content.substring(0, content.length() - 1);
}
}

T value = objectMapper.readValue(content, valueType);
return value instanceof List ? PagedList.constructPagedList(response, value) : value;
} else if ("text/plain".equalsIgnoreCase(mimeType)) {
2 changes: 1 addition & 1 deletion coverage/pom.xml
Original file line number Diff line number Diff line change
@@ -21,7 +21,7 @@
<parent>
<groupId>com.okta.sdk</groupId>
<artifactId>okta-sdk-root</artifactId>
<version>19.0.0-SNAPSHOT</version>
<version>19.0.1</version>
</parent>

<artifactId>okta-sdk-coverage</artifactId>
2 changes: 1 addition & 1 deletion examples/pom.xml
Original file line number Diff line number Diff line change
@@ -21,7 +21,7 @@
<parent>
<groupId>com.okta.sdk</groupId>
<artifactId>okta-sdk-root</artifactId>
<version>19.0.0-SNAPSHOT</version>
<version>19.0.1</version>
</parent>

<artifactId>okta-sdk-examples</artifactId>
2 changes: 1 addition & 1 deletion examples/quickstart/pom.xml
Original file line number Diff line number Diff line change
@@ -20,7 +20,7 @@
<parent>
<groupId>com.okta.sdk</groupId>
<artifactId>okta-sdk-examples</artifactId>
<version>19.0.0-SNAPSHOT</version>
<version>19.0.1</version>
<relativePath>../pom.xml</relativePath>
</parent>

2 changes: 1 addition & 1 deletion impl/pom.xml
Original file line number Diff line number Diff line change
@@ -21,7 +21,7 @@
<parent>
<groupId>com.okta.sdk</groupId>
<artifactId>okta-sdk-root</artifactId>
<version>19.0.0-SNAPSHOT</version>
<version>19.0.1</version>
</parent>

<artifactId>okta-sdk-impl</artifactId>
2 changes: 1 addition & 1 deletion integration-tests/pom.xml
Original file line number Diff line number Diff line change
@@ -20,7 +20,7 @@
<parent>
<groupId>com.okta.sdk</groupId>
<artifactId>okta-sdk-root</artifactId>
<version>19.0.0-SNAPSHOT</version>
<version>19.0.1</version>
<relativePath>../pom.xml</relativePath>
</parent>

18 changes: 11 additions & 7 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -20,12 +20,12 @@
<parent>
<groupId>com.okta</groupId>
<artifactId>okta-parent</artifactId>
<version>33</version>
<version>35</version>
</parent>

<groupId>com.okta.sdk</groupId>
<artifactId>okta-sdk-root</artifactId>
<version>19.0.0-SNAPSHOT</version>
<version>19.0.1</version>
<packaging>pom</packaging>

<name>Okta Java SDK</name>
@@ -39,7 +39,7 @@
<bouncycastle.version>1.78.1</bouncycastle.version>
<jjwt.version>0.12.6</jjwt.version>
<org.apache.httpcomponents.client5.version>5.3.1</org.apache.httpcomponents.client5.version>
<okta.sdk.previousVersion>18.0.0</okta.sdk.previousVersion>
<okta.sdk.previousVersion>19.0.0</okta.sdk.previousVersion>
<okta.commons.version>1.3.6</okta.commons.version>
<com.google.auto.service.version>1.1.1</com.google.auto.service.version>
<github.slug>okta/okta-sdk-java</github.slug>
@@ -68,12 +68,12 @@
<dependency>
<groupId>com.okta.sdk</groupId>
<artifactId>okta-sdk-api</artifactId>
<version>19.0.0-SNAPSHOT</version>
<version>19.0.1</version>
</dependency>
<dependency>
<groupId>com.okta.sdk</groupId>
<artifactId>okta-sdk-impl</artifactId>
<version>19.0.0-SNAPSHOT</version>
<version>19.0.1</version>
</dependency>

<!-- Other Okta Projects -->
@@ -103,14 +103,14 @@
<dependency>
<groupId>com.okta.sdk</groupId>
<artifactId>okta-sdk-integration-tests</artifactId>
<version>19.0.0-SNAPSHOT</version>
<version>19.0.1</version>
</dependency>

<!-- Examples -->
<dependency>
<groupId>com.okta.sdk</groupId>
<artifactId>okta-sdk-examples-quickstart</artifactId>
<version>19.0.0-SNAPSHOT</version>
<version>19.0.1</version>
</dependency>

<!-- Logging -->
@@ -373,5 +373,9 @@
</build>
</profile>
</profiles>

<scm>
<tag>okta-sdk-root-19.0.1</tag>
</scm>
</project>