Skip to content

Commit

Permalink
docs: deprecate DAPS module
Browse files Browse the repository at this point in the history
  • Loading branch information
ndr-brt committed Oct 10, 2024
1 parent 5bc8a21 commit d69ca60
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# DAPS module deprecation

## Decision

We will stop publishing DAPS related modules.

## Rationale

Shifting toward decentralized identity model though the adoption of Decentralized Claims Protocol as the protocol to be
used, makes DAPS obsolete, and maintaining it is an unneeded effort by the EDC committer group.

## Approach

In EDC version 0.10.0 we deprecated:
- module `oauth2-daps`
- class `Oauth2ServiceImpl`

they will be removed without further warnings in the subsequent versions.
2 changes: 2 additions & 0 deletions docs/developer/decision-records/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,5 @@
- [2024-09-25 Multiple Protocol Versions](./2024-09-25-multiple-protocol-versions)
- [2024-10-02 Clustered data-plane](./2024-10-02-clustered-data-plane/)
- [2024-10-06 Typed Policy Scopes through Contexts](./2024-10-05-typed-policy-context)
- [2024-10-10 DAPS module deprecation](./2024-10-10-daps-deprecation)

Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@

/**
* Implements the OAuth2 client credentials flow and bearer token validation.
*
* @deprecated will be removed in the next versions.
*/
@Deprecated(since = "0.10.0")
public class Oauth2ServiceImpl implements IdentityService {

private static final String GRANT_TYPE = "client_credentials";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,11 @@

/**
* Provides specialization of Oauth2 extension to interact with DAPS instance
*
* @deprecated will be removed in the next versions.
*/
@Extension(value = DapsExtension.NAME)
@Deprecated(since = "0.10.0")
public class DapsExtension implements ServiceExtension {

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

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import org.eclipse.edc.spi.iam.TokenParameters;
import org.eclipse.edc.token.spi.TokenDecorator;

@Deprecated(since = "0.10.0")
public class DapsJwtDecorator implements TokenDecorator {

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@

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

Expand Down

0 comments on commit d69ca60

Please sign in to comment.