Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: merge from 4.5.3 #637

Merged
merged 39 commits into from
Feb 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
ec0b7ea
Version 4.5.0.Final
yurem Dec 8, 2022
eac0d34
Version 4.5.1-SNAPSHOT
yurem Apr 17, 2023
8316470
Version 4.5.1-SNAPSHOT
yurem Apr 17, 2023
b990c99
Version 4.5.1-SNAPSHOT
yurem Apr 17, 2023
9c34a1c
fix: update the dependencies to resolve vulnerability #623
duttarnab May 16, 2023
82fda2d
fix: fixing compilation issues #623
duttarnab May 16, 2023
eec8d8b
fix: fixing compilation issues #623
duttarnab May 16, 2023
97f101f
fix: using BaseValidator #623
duttarnab May 16, 2023
ed1491d
fix: using BaseValidator #623
duttarnab May 16, 2023
19a898b
fix: using BaseValidator #623
duttarnab May 16, 2023
446b5b0
fix: fix test cases #623
duttarnab May 16, 2023
40bc4de
fix: fix test cases #623
duttarnab May 16, 2023
1e6a1d4
fix: fix test cases #623
duttarnab May 16, 2023
3a9fb79
fix: fix compilation issues #623
duttarnab May 16, 2023
ee978a6
Merge pull request #624 from GluuFederation/version_4.5.1_bkp
duttarnab May 16, 2023
86d900c
fix: upgrade gson to 2.8.9 #623
duttarnab May 16, 2023
d738450
Version 4.5.1.Final
yurem May 16, 2023
67820cb
feat: upgrade opentracing dependencies
duttarnab May 17, 2023
16ee91f
Version 4.5.2-SNAPSHOT
yurem Jun 14, 2023
b0d93cb
Version 4.5.2.Final
yurem Aug 7, 2023
7939a65
Version 4.5.3-SNAPSHOT
yurem Oct 19, 2023
eb4fefa
chore: update BC libs
yurem Nov 14, 2023
097b05d
chore: update libs
yurem Nov 15, 2023
e8b2a72
chore: restore old snakeyaml lib
yurem Nov 16, 2023
ec34dc9
chore: update libs
yurem Nov 16, 2023
3be885b
chore: update libs
yurem Nov 16, 2023
52d4425
chore: update libs
yurem Nov 16, 2023
794c906
chore: update libs
yurem Nov 16, 2023
4939852
chore: update libs
yurem Nov 16, 2023
cada9de
Merge branch 'version_4.5.3' of https://github.com/GluuFederation/oxd…
yurem Nov 16, 2023
19710cb
Issue#629 (#630)
duttarnab Nov 21, 2023
de15e6a
chore: update libs
yurem Nov 21, 2023
c90fd5d
chore: update libs
yurem Nov 21, 2023
f2d7c27
chore: upgrade libs
duttarnab Nov 21, 2023
0203728
chore: upgrade libs
duttarnab Nov 21, 2023
c854520
Merge pull request #632 from GluuFederation/version_4.5.3_libs_update
duttarnab Nov 21, 2023
124f600
Version 4.5.3.Final
yurem Dec 5, 2023
769c1f8
Version 4.5.3.Final
yurem Dec 5, 2023
6a74a1e
Merge branch 'master' into version_4.5.3
yurem Feb 7, 2024
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
69 changes: 55 additions & 14 deletions oxd-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<properties>
<dbcp.version>1.4</dbcp.version>
<h2.version>2.1.210</h2.version>
<dropwizard.version>2.0.29</dropwizard.version>
<dropwizard.version>3.0.4</dropwizard.version>
<jersey-test-framework-provider>2.29.1</jersey-test-framework-provider>
<generate.windows.exe>false</generate.windows.exe>
<commons-daemon.bin.version>1.2.1</commons-daemon.bin.version>
Expand Down Expand Up @@ -127,22 +127,22 @@
</artifactItem>
<artifactItem>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk15on</artifactId>
<version>1.70</version>
<artifactId>bcprov-jdk18on</artifactId>
<version>1.76</version>
<overWrite>true</overWrite>
<outputDirectory>${project.build.directory}/dependencies</outputDirectory>
</artifactItem>
<artifactItem>
<groupId>org.bouncycastle</groupId>
<artifactId>bcpkix-jdk15on</artifactId>
<version>1.70</version>
<artifactId>bcpkix-jdk18on</artifactId>
<version>1.76</version>
<overWrite>true</overWrite>
<outputDirectory>${project.build.directory}/dependencies</outputDirectory>
</artifactItem>
<artifactItem>
<groupId>org.bouncycastle</groupId>
<artifactId>bcutil-jdk15on</artifactId>
<version>1.70</version>
<artifactId>bcutil-jdk18on</artifactId>
<version>1.76</version>
<overWrite>true</overWrite>
<outputDirectory>${project.build.directory}/dependencies</outputDirectory>
</artifactItem>
Expand Down Expand Up @@ -275,11 +275,23 @@
<dependencies>
<dependency>
<groupId>io.dropwizard</groupId>
<artifactId>dropwizard-bom</artifactId>
<artifactId>dropwizard-dependencies</artifactId>
<version>${dropwizard.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>testcontainers-bom</artifactId>
<version>1.19.2</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>net.java.dev.jna</groupId>
<artifactId>jna</artifactId>
<version>5.13.0</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-text</artifactId>
Expand Down Expand Up @@ -425,6 +437,12 @@
<artifactId>oxd-gen-client</artifactId>
<version>${project.version}</version>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>com.squareup.okio</groupId>
<artifactId>okio</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.gluu</groupId>
Expand Down Expand Up @@ -482,7 +500,7 @@
<dependency>
<groupId>org.yaml</groupId>
<artifactId>snakeyaml</artifactId>
<version>1.32</version>
<version>2.0</version>
<scope>compile</scope>
</dependency>
<dependency>
Expand Down Expand Up @@ -532,10 +550,21 @@
<artifactId>zipkin-reporter</artifactId>
<version>2.16.4</version>
</dependency>
<dependency>
<groupId>com.squareup.okio</groupId>
<artifactId>okio</artifactId>
<version>3.4.0</version>
</dependency>
<dependency>
<groupId>io.zipkin.reporter2</groupId>
<artifactId>zipkin-sender-okhttp3</artifactId>
<version>2.16.4</version>
<exclusions>
<exclusion>
<groupId>com.squareup.okio</groupId>
<artifactId>okio</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.gluu</groupId>
Expand Down Expand Up @@ -573,15 +602,15 @@
<exclusions>
<exclusion>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk15on</artifactId>
<artifactId>bcprov-jdk18on</artifactId>
</exclusion>
<exclusion>
<groupId>org.bouncycastle</groupId>
<artifactId>bcpkix-jdk15on</artifactId>
<artifactId>bcpkix-jdk18on</artifactId>
</exclusion>
<exclusion>
<groupId>org.bouncycastle</groupId>
<artifactId>bcutil-jdk15on</artifactId>
<artifactId>bcutil-jdk18on</artifactId>
</exclusion>
</exclusions>
</dependency>
Expand Down Expand Up @@ -612,11 +641,23 @@
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-remote-driver</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>com.squareup.okio</groupId>
<artifactId>okio</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-support</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>com.squareup.okio</groupId>
<artifactId>okio</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
Expand Down Expand Up @@ -720,12 +761,12 @@
<dependencies>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk15on</artifactId>
<artifactId>bcprov-jdk18on</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcpkix-jdk15on</artifactId>
<artifactId>bcpkix-jdk18on</artifactId>
<scope>runtime</scope>
</dependency>
</dependencies>
Expand Down
2 changes: 1 addition & 1 deletion oxd-server/src/main/assembly/src.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<directory>${project.build.directory}/dependencies</directory>
<outputDirectory>/lib</outputDirectory>
<includes>
<include>*-jdk15on*.jar</include>
<include>*-jdk18on*.jar</include>
</includes>
</fileSet>
<fileSet>
Expand Down
4 changes: 2 additions & 2 deletions oxd-server/src/main/assembly/windows-exe-src.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
<outputDirectory>/lib</outputDirectory>
<useProjectArtifact>false</useProjectArtifact>
<includes>
<include>org.bouncycastle:bcprov-jdk15on</include>
<include>org.bouncycastle:bcpkix-jdk15on</include>
<include>org.bouncycastle:bcprov-jdk18on</include>
<include>org.bouncycastle:bcpkix-jdk18on</include>
</includes>
<scope>runtime</scope>
</dependencySet>
Expand Down
4 changes: 2 additions & 2 deletions oxd-server/src/main/bin/oxd-download.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/bin/sh

warName=oxd-server-4.5.0-SNAPSHOT-distribution.zip
warName=oxd-server-4.5.3.Final-distribution.zip
distDir=oxd-dist

# Clean up
rm -f $warName
rm -f -r $destDir

# Download and unzip
wget http://ox.gluu.org/maven/org/xdi/oxd-server/4.5.0-SNAPSHOT/$warName
wget http://ox.gluu.org/maven/org/xdi/oxd-server/4.5.3.Final/$warName
unzip $warName -d $distDir
2 changes: 1 addition & 1 deletion oxd-server/src/main/java/org/gluu/oxd/server/Cli.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
import io.dropwizard.configuration.ConfigurationException;
import io.dropwizard.configuration.ConfigurationFactory;
import io.dropwizard.configuration.DefaultConfigurationFactoryFactory;
import io.dropwizard.core.server.DefaultServerFactory;
import io.dropwizard.jackson.Jackson;
import io.dropwizard.jersey.validation.Validators;
import io.dropwizard.jetty.ConnectorFactory;
import io.dropwizard.jetty.HttpConnectorFactory;
import io.dropwizard.jetty.HttpsConnectorFactory;
import io.dropwizard.server.DefaultServerFactory;
import org.apache.commons.cli.*;
import org.apache.commons.lang.StringUtils;
import org.apache.log4j.Level;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package org.gluu.oxd.server;

import com.codahale.metrics.health.HealthCheck;
import io.dropwizard.Application;
import io.dropwizard.configuration.EnvironmentVariableSubstitutor;
import io.dropwizard.configuration.SubstitutingSourceProvider;
import io.dropwizard.setup.Bootstrap;
import io.dropwizard.setup.Environment;
import io.dropwizard.core.Application;
import io.dropwizard.core.setup.Bootstrap;
import io.dropwizard.core.setup.Environment;
import org.glassfish.jersey.server.filter.RolesAllowedDynamicFeature;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.JsonNode;
import com.google.common.collect.Lists;
import io.dropwizard.Configuration;
import io.dropwizard.core.Configuration;

import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package org.gluu.oxd.server;

import io.dropwizard.util.Strings;
import com.google.common.base.Strings;
import io.opentracing.Scope;
import org.gluu.oxd.common.Command;
import org.gluu.oxd.common.CommandType;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package org.gluu.oxd.server.op;

import com.google.common.base.Strings;
import com.google.inject.Injector;
import io.dropwizard.util.Strings;
import org.gluu.oxd.common.Command;
import org.gluu.oxd.common.ErrorResponseCode;
import org.gluu.oxd.common.ExpiredObject;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package org.gluu.oxd.server.op;

import com.google.inject.Injector;
import io.dropwizard.util.Strings;
import io.dropwizard.logback.shaded.guava.base.Strings;
import org.apache.commons.lang.StringUtils;
import org.gluu.oxauth.model.crypto.signature.SignatureAlgorithm;
import org.gluu.oxauth.model.jwk.Algorithm;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package org.gluu.oxd.server.op;

import com.google.inject.Injector;
import io.dropwizard.util.Strings;
import io.dropwizard.logback.shaded.guava.base.Strings;
import org.gluu.oxauth.client.UserInfoClient;
import org.gluu.oxauth.client.UserInfoRequest;
import org.gluu.oxauth.client.UserInfoResponse;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
package org.gluu.oxd.server.service;

import com.google.inject.Inject;
import io.dropwizard.util.Strings;
import io.dropwizard.logback.shaded.guava.base.Strings;
import org.apache.commons.lang.StringUtils;
import org.gluu.oxauth.client.OpenIdConfigurationClient;
import org.gluu.oxauth.client.OpenIdConfigurationResponse;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import com.google.common.collect.Lists;
import com.google.inject.Inject;
import io.dropwizard.util.Strings;
import io.dropwizard.logback.shaded.guava.base.Strings;
import org.gluu.oxauth.model.crypto.AbstractCryptoProvider;
import org.gluu.oxauth.model.crypto.OxAuthCryptoProvider;
import org.gluu.oxauth.model.crypto.encryption.KeyEncryptionAlgorithm;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import java.util.Optional;
import java.util.concurrent.TimeUnit;

import io.dropwizard.logback.shaded.guava.base.Strings;
import org.gluu.oxauth.client.JwkClient;
import org.gluu.oxauth.client.JwkResponse;
import org.gluu.oxauth.model.crypto.PublicKey;
Expand All @@ -24,7 +25,6 @@
import com.google.common.collect.Lists;
import com.google.inject.Inject;

import io.dropwizard.util.Strings;

/**
* @author Yuriy Zabrovarnyy
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package org.gluu.oxd.server;

import com.google.common.base.Strings;
import com.google.common.collect.Lists;
import io.dropwizard.util.Strings;
import org.apache.commons.codec.binary.Base64;
import org.gluu.oxauth.model.common.AuthenticationMethod;
import org.gluu.oxauth.model.util.Util;
Expand Down
12 changes: 6 additions & 6 deletions oxd-server/src/test/java/org/gluu/oxd/server/SetUpTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,28 +31,28 @@ public class SetUpTest {
@BeforeSuite
public static void beforeSuite(String host, String opHost, String redirectUrls) {
try {
LOG.debug("Running beforeSuite ...");
LOG.info("Running beforeSuite ...");
ServerLauncher.setSetUpSuite(true);

SUPPORT = new DropwizardTestSupport<OxdServerConfiguration>(OxdServerApplication.class,
ResourceHelpers.resourceFilePath("oxd-server-jenkins.yml"),
ConfigOverride.config("server.applicationConnectors[0].port", "0") // Optional, if not using a separate testing-specific configuration file, use a randomly selected port
);
SUPPORT.before();
LOG.debug("HTTP server started.");
LOG.info("HTTP server started.");

removeExistingRps();
LOG.debug("Existing RPs are removed.");
LOG.info("Existing RPs are removed.");

RegisterSiteResponse setupClient = SetupClientTest.setupClient(Tester.newClient(host), opHost, redirectUrls);
Tester.setSetupClient(setupClient, host, opHost);
LOG.debug("SETUP_CLIENT is set in Tester.");
LOG.info("SETUP_CLIENT is set in Tester.");

Preconditions.checkNotNull(Tester.getAuthorization());
LOG.debug("Tester's authorization is set.");
LOG.info("Tester's authorization is set.");

setupSwaggerSuite(Tester.getTargetHost(host), opHost, redirectUrls);
LOG.debug("Finished beforeSuite!");
LOG.info("Finished beforeSuite!");
} catch (Exception e) {
LOG.error("Failed to start suite.", e);
throw new AssertionError("Failed to start suite.");
Expand Down
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.min-version>3.0.3</maven.min-version>
<oxCore.version>4.5.4-SNAPSHOT</oxCore.version>
<oxCore.version>4.5.3.Final</oxCore.version>
<jackson.version>2.10.1</jackson.version>
<httpcomponents.version>4.1.2</httpcomponents.version>
<oxauth.version>4.5.4-SNAPSHOT</oxauth.version>
<oxauth.version>4.5.3.Final</oxauth.version>
<licensing.version>1.1.0</licensing.version>
<guice.version>3.0</guice.version>
<guava.version>[24.1.1,)</guava.version>
<oxlicense.version>4.5.4-SNAPSHOT</oxlicense.version>
<oxlicense.version>4.5.3.Final</oxlicense.version>
<selenium.version>3.141.59</selenium.version>
<skip.swagger.client.generation>false</skip.swagger.client.generation>

Expand Down
Loading