Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: implements DIM STS adapter #1054

Merged
merged 3 commits into from
Feb 19, 2024

Conversation

wolf4ood
Copy link
Contributor

@wolf4ood wolf4ood commented Feb 14, 2024

WHAT

Implements a SecureTokenService that talks with DIM.

For obtaining an SI token with this implementation first we need to fetch a valid OAuth token with the DimOauth2Client, then we make two kind of request to DIM

  • grantAccess for fetching an SI with the bearerAccessScope
  • signToken for fetching an SI token providing the extracted access_token from the DSP request (SI token)

The implementation of DimOauth2Client is currently sub-optimal since it's not caching the OAuth token. This will be implemented in subsequent PRs

This PR also ships an E2E test mocking the OAuth server and the DIM interaction

WHY

iatp integration

Closes #1038

@wolf4ood wolf4ood force-pushed the feat/1038_sts_dim branch 11 times, most recently from 7549a0b to 30c8811 Compare February 14, 2024 18:36
@wolf4ood wolf4ood marked this pull request as ready for review February 14, 2024 19:01
@wolf4ood wolf4ood self-assigned this Feb 15, 2024
.github/workflows/verify.yaml Outdated Show resolved Hide resolved
edc-tests/e2e-tests/build.gradle.kts Show resolved Hide resolved
public static final String CREDENTIAL_TYPES = "credentialTypes";
public static final String SIGN_TOKEN = "signToken";

private final EdcHttpClient httpClient;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need these finals?

edc-extensions/iatp/tx-iatp-sts-dim/build.gradle.kts Outdated Show resolved Hide resolved
Copy link

Quality Gate Passed Quality Gate passed

Issues
1 New issue

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@wolf4ood wolf4ood merged commit d5750b9 into eclipse-tractusx:main Feb 19, 2024
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Merged
Development

Successfully merging this pull request may close these issues.

STS: DIM integration
4 participants