Skip to content

Commit

Permalink
chore: deprecate oauth2 service modules
Browse files Browse the repository at this point in the history
  • Loading branch information
ndr-brt committed Jan 8, 2025
1 parent 8534c24 commit e1383f1
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 1 deletion.
2 changes: 2 additions & 0 deletions extensions/common/iam/oauth2/oauth2-core/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# OAuth 2 Identity Service

**DEPRECATED**: this repo has been deprecated in version 0.10.0 and it will be deleted in the upcoming versions.

This extension provides an `IdentityService` implementation based on the OAuth2 protocol for authorization.

## Configuration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@

/**
* Configuration values and dependencies for {@link Oauth2ServiceImpl}.
*
* @deprecated please switch to DCP.
*/
@Deprecated(since = "0.10.0")
@Settings
public class Oauth2ServiceConfiguration {
static final String ISSUED_AT_LEEWAY = "edc.oauth.validation.issued.at.leeway";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@
/**
* Provides default service implementations for fallback
* Omitted {@link org.eclipse.edc.runtime.metamodel.annotation.Extension} since this module already contains {@link Oauth2ServiceExtension}
*
* @deprecated please switch to DCP.
*/
@Deprecated(since = "0.10.0")
public class Oauth2ServiceDefaultServicesExtension implements ServiceExtension {

public static final String NAME = "OAuth2 Core Default Services";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,12 @@

/**
* Provides OAuth2 client credentials flow support.
*
* @deprecated please switch to DCP.
*/
@Provides({ IdentityService.class })
@Extension(value = Oauth2ServiceExtension.NAME)
@Deprecated(since = "0.10.0")
public class Oauth2ServiceExtension implements ServiceExtension {

public static final String NAME = "OAuth2 Identity Service";
Expand Down
4 changes: 3 additions & 1 deletion extensions/common/iam/oauth2/oauth2-service/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# OAuth 2 Service

**DEPRECATED**: this repo has been deprecated in version 0.10.0 and it will be deleted in the upcoming versions.

This BOM provides a ready-to-use version of the [Oauth2 IdentityService](../oauth2-core) including the [Oauth2 Client](../oauth2-client)
provided by the EDC.

> **_NOTE:_** Unless you are sure of what you are doing, you do not want to implement your own Oauth2 Client in most cases.
> This BOM should thus be considered as the standard and recommended approach of embedding the Oauth2 Identity Service into your runtime.
> This BOM should thus be considered as the standard and recommended approach of embedding the Oauth2 Identity Service into your runtime.

0 comments on commit e1383f1

Please sign in to comment.