Skip to content

Commit f7b7088

Browse files
authored
Remove OpenIdAuthorizer and OpenID authentication dependencies (#17320)
* Remove OpenID authorizer and configuration dependencies * Remove stale OpenID dependencies from SBOM metadata
1 parent 063794b commit f7b7088

11 files changed

Lines changed: 2 additions & 512 deletions

File tree

LICENSE-binary

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -216,28 +216,21 @@ following license. See licenses/ for text of these licenses.
216216
Apache License 2.0
217217
--------------------------------------
218218
commons-cli:commons-cli:1.5.0
219-
com.nimbusds:content-type:2.2
220219
com.google.code.gson:gson:2.13.1
221220
com.google.guava.guava:32.1.2-jre
222221
com.fasterxml.jackson.core:jackson-annotations:2.16.2
223222
com.fasterxml.jackson.core:jackson-core:2.16.2
224223
com.fasterxml.jackson.core:jackson-databind:2.16.2
225224
jakarta.inject:jakarta.inject:2.6.1
226225
at.yawk.lz4:lz4-java:1.10.0
227-
com.github.stephenc.jcip:jcip-annotations:1.0-1
228226
com.github.ben-manes.caffeine:caffeine:2.9.3
229227
org.eclipse.jetty:jetty-http:9.4.58.v20250814
230228
org.eclipse.jetty:jetty-io:9.4.58.v20250814
231229
org.eclipse.jetty:jetty-security:9.4.58.v20250814
232230
org.eclipse.jetty:jetty-server:9.4.58.v20250814
233231
org.eclipse.jetty:jetty-servlet:9.4.58.v20250814
234232
org.eclipse.jetty:jetty-util:9.4.58.v20250814
235-
io.jsonwebtoken:jjwt-api:0.12.7
236-
io.jsonwebtoken:jjwt-impl:0.12.7
237-
io.jsonwebtoken:jjwt-jackson:0.12.7
238-
net.minidev:json-smart:2.5.2
239233
com.google.code.findbugs:jsr305:3.0.2
240-
com.nimbusds:lang-tag:1.7
241234
com.librato.metrics:librato-java:2.1.0
242235
org.apache.thrift:libthrift:0.14.1
243236
io.dropwizard.metrics:metrics-core:4.2.19
@@ -255,14 +248,11 @@ io.netty:netty-transport:4.1.126.Final
255248
io.netty:netty-transport-native-epoll:4.1.126.Final:linux-aarch_64
256249
io.netty:netty-transport-native-epoll:4.1.126.Final:linux-x86_64
257250
io.netty:netty-transport-native-unix-common:4.1.126.Final
258-
com.nimbusds:nimbus-jose-jwt:9.37.4
259-
com.nimbusds:oauth2-oidc-sdk:10.15
260251
org.osgi:org.osgi.core:7.0.0
261252
org.osgi:osgi.cmpn:7.0.0
262253
org.ops4j.pax.jdbc:pax-jdbc-common:1.5.6
263254
org.xerial.snappy:snappy-java:1.1.10.5
264255
io.airlift.airline:0.9
265-
net.minidev:accessors-smart:2.5.0
266256

267257

268258
BSD 3-Clause

dependencies.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
"com.github.ben-manes.caffeine:caffeine",
1919
"com.github.luben:zstd-jni",
2020
"com.github.moquette-io.moquette:moquette-broker",
21-
"com.github.stephenc.jcip:jcip-annotations",
2221
"com.github.wendykierp:JTransforms",
2322
"com.google.code.findbugs:jsr305",
2423
"com.google.code.gson:gson",
@@ -28,10 +27,6 @@
2827
"com.google.guava:listenablefuture",
2928
"com.google.j2objc:j2objc-annotations",
3029
"com.h2database:h2-mvstore",
31-
"com.nimbusds:content-type",
32-
"com.nimbusds:lang-tag",
33-
"com.nimbusds:nimbus-jose-jwt",
34-
"com.nimbusds:oauth2-oidc-sdk",
3530
"com.sun.istack:istack-commons-runtime",
3631
"com.zaxxer:HikariCP",
3732
"commons-cli:commons-cli",
@@ -40,7 +35,6 @@
4035
"io.airlift:airline",
4136
"io.airlift:units",
4237
"io.dropwizard.metrics:metrics-core",
43-
"io.jsonwebtoken:jjwt-api",
4438
"io.micrometer:micrometer-commons",
4539
"io.micrometer:micrometer-core",
4640
"io.micrometer:micrometer-observation",
@@ -88,8 +82,6 @@
8882
"javax.xml.bind:jaxb-api",
8983
"net.java.dev.jna:jna",
9084
"net.java.dev.jna:jna-platform",
91-
"net.minidev:accessors-smart",
92-
"net.minidev:json-smart",
9385
"org.antlr:antlr4-runtime",
9486
"org.apache.commons:commons-csv",
9587
"org.apache.commons:commons-lang3",

iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/persistence/auth/AuthorPlanExecutor.java

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
import org.apache.iotdb.common.rpc.thrift.TSStatus;
2323
import org.apache.iotdb.commons.auth.AuthException;
2424
import org.apache.iotdb.commons.auth.authorizer.IAuthorizer;
25-
import org.apache.iotdb.commons.auth.authorizer.OpenIdAuthorizer;
2625
import org.apache.iotdb.commons.auth.entity.ModelType;
2726
import org.apache.iotdb.commons.auth.entity.PrivilegeModelType;
2827
import org.apache.iotdb.commons.auth.entity.PrivilegeType;
@@ -83,14 +82,7 @@ public TPermissionInfoResp login(
8382
try {
8483
status = authorizer.login(username, password, useEncryptedPassword);
8584
if (status) {
86-
// Bring this user's permission information back to the datanode for caching
87-
if (authorizer instanceof OpenIdAuthorizer) {
88-
username = ((OpenIdAuthorizer) authorizer).getIoTDBUserName(username);
89-
result = getUserPermissionInfo(username, ModelType.ALL);
90-
result.getUserInfo().setIsOpenIdUser(true);
91-
} else {
92-
result = getUserPermissionInfo(username, ModelType.ALL);
93-
}
85+
result = getUserPermissionInfo(username, ModelType.ALL);
9486

9587
result.setStatus(RpcUtils.getStatus(TSStatusCode.SUCCESS_STATUS, "Login successfully"));
9688
} else {

iotdb-core/datanode/pom.xml

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -282,33 +282,11 @@
282282
<artifactId>mockito-core</artifactId>
283283
<scope>test</scope>
284284
</dependency>
285-
<!-- Possibly these need to move into the compile or provided scope -->
286-
<dependency>
287-
<groupId>io.jsonwebtoken</groupId>
288-
<artifactId>jjwt-impl</artifactId>
289-
<scope>test</scope>
290-
</dependency>
291-
<!-- Possibly these need to move into the compile or provided scope -->
292-
<dependency>
293-
<groupId>io.jsonwebtoken</groupId>
294-
<artifactId>jjwt-jackson</artifactId>
295-
<scope>test</scope>
296-
</dependency>
297-
<dependency>
298-
<groupId>net.minidev</groupId>
299-
<artifactId>json-smart</artifactId>
300-
<scope>test</scope>
301-
</dependency>
302285
<dependency>
303286
<groupId>org.apache.ratis</groupId>
304287
<artifactId>ratis-thirdparty-misc</artifactId>
305288
<scope>runtime</scope>
306289
</dependency>
307-
<dependency>
308-
<groupId>com.nimbusds</groupId>
309-
<artifactId>oauth2-oidc-sdk</artifactId>
310-
<scope>test</scope>
311-
</dependency>
312290
<dependency>
313291
<groupId>org.powermock</groupId>
314292
<artifactId>powermock-core</artifactId>
@@ -493,11 +471,6 @@
493471
<!-- For some reason this plugin missed it being used for a constant import -->
494472
<ignoredDependency>org.apache.iotdb:isession</ignoredDependency>
495473
</ignoredDependencies>
496-
<usedDependencies>
497-
<!-- These are used at runtime in tests -->
498-
<usedDependency>io.jsonwebtoken:jjwt-impl</usedDependency>
499-
<usedDependency>io.jsonwebtoken:jjwt-jackson</usedDependency>
500-
</usedDependencies>
501474
</configuration>
502475
</plugin>
503476
<plugin>

iotdb-core/datanode/src/test/java/org/apache/iotdb/db/auth/authorizer/OpenIdAuthorizerTest.java

Lines changed: 0 additions & 114 deletions
This file was deleted.

iotdb-core/node-commons/pom.xml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -138,26 +138,10 @@
138138
<groupId>com.google.code.findbugs</groupId>
139139
<artifactId>jsr305</artifactId>
140140
</dependency>
141-
<dependency>
142-
<groupId>net.minidev</groupId>
143-
<artifactId>json-smart</artifactId>
144-
</dependency>
145-
<dependency>
146-
<groupId>com.nimbusds</groupId>
147-
<artifactId>nimbus-jose-jwt</artifactId>
148-
</dependency>
149141
<dependency>
150142
<groupId>cglib</groupId>
151143
<artifactId>cglib</artifactId>
152144
</dependency>
153-
<dependency>
154-
<groupId>io.jsonwebtoken</groupId>
155-
<artifactId>jjwt-api</artifactId>
156-
</dependency>
157-
<dependency>
158-
<groupId>com.nimbusds</groupId>
159-
<artifactId>oauth2-oidc-sdk</artifactId>
160-
</dependency>
161145
<dependency>
162146
<groupId>com.github.ben-manes.caffeine</groupId>
163147
<artifactId>caffeine</artifactId>

iotdb-core/node-commons/src/assembly/resources/conf/iotdb-system.properties.template

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1733,16 +1733,10 @@ compressor=LZ4
17331733
####################
17341734

17351735
# which class to serve for authorization. By default, it is LocalFileAuthorizer.
1736-
# Another choice is org.apache.iotdb.commons.auth.authorizer.OpenIdAuthorizer
17371736
# effectiveMode: restart
17381737
# Privilege: SECURITY
17391738
authorizer_provider_class=org.apache.iotdb.commons.auth.authorizer.LocalFileAuthorizer
17401739

1741-
# If OpenIdAuthorizer is enabled, then openID_url must be set.
1742-
# effectiveMode: restart
1743-
# Privilege: SECURITY
1744-
openID_url=
1745-
17461740
# encryption provider class
17471741
# effectiveMode: first_start
17481742
iotdb_server_encrypt_decrypt_provider=org.apache.iotdb.commons.security.encrypt.MessageDigestEncrypt

0 commit comments

Comments
 (0)