Replies: 1 comment
-
|
Technically, you don't need to define any exclusions, all you need to do is not include the That being said, when using EDC BOMs the STS Remote Client is indeed on the classpath and an exclusion would be necessary. BOMs are intended to provide a sensible runtime from the perspective of EDC committers, and that would naturally include other EDC components such as STS. Default providers are really more intended for fallback implementations, such as in-mem stores or registries. EDC's STS implementation is not a fallback, it was a conscientious decision to include it. I saw that in the build file you linked there are other exclusions as well, so my recommendation would be to define a custom Tractus-X BOM that does not contain the STS module (and any of the others). This will provide the most flexibility down the road. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
The STS-API is implementation-specific and non-standardized. The
StsRemoteClientExtension[1] provides an implementation ofSecureTokenServiceinto the IoC container. It's not marked withisDefault = trueso as soon as anotherSecureTokenServiceis injected, there's a warning [2] and load-order-dependent behavior. That's why using a different STS implementation requires a gradle exclusion [3].Let's discuss if it makes sense to
[1]
https://github.com/eclipse-edc/Connector/blob/main/extensions/common/iam/decentralized-claims/decentralized-claims-sts/decentralized-claims-sts-remote-client/src/main/java/org/eclipse/edc/iam/decentralizedclaims/sts/remote/client/StsRemoteClientExtension.java
[2]
{"timestamp":"2026-03-23T13:38:19.2373343","level":"WARNING","message":"A service of the type org.eclipse.edc.iam.decentralizedclaims.spi.SecureTokenService was already registered and has now been replaced with a RemoteSecureTokenService instance."}[3]
https://github.com/eclipse-tractusx/tractusx-edc/blob/096ed9b2bcd1470c357c21b128175f315de9227a/edc-controlplane/edc-controlplane-base/build.gradle.kts#L30-L31
[4]
Connector/extensions/common/iam/decentralized-claims/decentralized-claims-core/src/main/java/org/eclipse/edc/iam/decentralizedclaims/core/DcpDefaultServicesExtension.java
Lines 71 to 110 in 87b33ad
Beta Was this translation helpful? Give feedback.
All reactions