Skip to content

Commit dda8fa4

Browse files
committed
docs: deprecate DAPS module (#4538)
* docs: deprecate DAPS module * pr remark
1 parent 5bc8a21 commit dda8fa4

File tree

5 files changed

+24
-0
lines changed

5 files changed

+24
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# DAPS module deprecation
2+
3+
## Decision
4+
5+
We will stop publishing DAPS related module.
6+
7+
## Rationale
8+
9+
Shifting toward decentralized identity model though the adoption of Decentralized Claims Protocol as the protocol to be
10+
used, makes DAPS obsolete, and maintaining it is an unneeded effort by the EDC committer group.
11+
12+
## Approach
13+
14+
The `oauth2-daps` has been deprecated in EDC version 0.10.0 and it be removed without further warnings in the subsequent versions.

docs/developer/decision-records/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,5 @@
6464
- [2024-09-25 Multiple Protocol Versions](./2024-09-25-multiple-protocol-versions)
6565
- [2024-10-02 Clustered data-plane](./2024-10-02-clustered-data-plane/)
6666
- [2024-10-06 Typed Policy Scopes through Contexts](./2024-10-05-typed-policy-context)
67+
- [2024-10-10 DAPS module deprecation](./2024-10-10-daps-deprecation)
68+

extensions/common/iam/oauth2/oauth2-daps/src/main/java/org/eclipse/edc/iam/oauth2/daps/DapsExtension.java

+4
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,11 @@
2525

2626
/**
2727
* Provides specialization of Oauth2 extension to interact with DAPS instance
28+
*
29+
* @deprecated will be removed in the next versions.
2830
*/
2931
@Extension(value = DapsExtension.NAME)
32+
@Deprecated(since = "0.10.0")
3033
public class DapsExtension implements ServiceExtension {
3134

3235
public static final String NAME = "DAPS";
@@ -45,6 +48,7 @@ public String name() {
4548

4649
@Override
4750
public void initialize(ServiceExtensionContext context) {
51+
context.getMonitor().warning("The extension %s has been deprecated, please switch to a decentralized implementation".formatted(NAME));
4852
jwtDecoratorRegistry.register(OAUTH_2_DAPS_TOKEN_CONTEXT, new DapsJwtDecorator());
4953
}
5054

extensions/common/iam/oauth2/oauth2-daps/src/main/java/org/eclipse/edc/iam/oauth2/daps/DapsJwtDecorator.java

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import org.eclipse.edc.spi.iam.TokenParameters;
1818
import org.eclipse.edc.token.spi.TokenDecorator;
1919

20+
@Deprecated(since = "0.10.0")
2021
public class DapsJwtDecorator implements TokenDecorator {
2122

2223
@Override

extensions/common/iam/oauth2/oauth2-daps/src/main/java/org/eclipse/edc/iam/oauth2/daps/DapsTokenDecorator.java

+3
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@
2020

2121
/**
2222
* Token decorator that sets the {@code scope} claim on the token that is used on DSP request egress
23+
*
24+
* @deprecated will be removed in the upcoming versions.
2325
*/
26+
@Deprecated(since = "0.10.0")
2427
public class DapsTokenDecorator implements TokenDecorator {
2528
private final String scope;
2629

0 commit comments

Comments
 (0)