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: add new V2 EDR API #1140

Conversation

paullatzelsperger
Copy link
Contributor

@paullatzelsperger paullatzelsperger commented Mar 18, 2024

WHAT

This PR replicates the /edrs API from EDC upstream, but adds the possibility to refresh EDRs automatically when obtaining them.
In addition, the convenience method to negotiated EDRs, that is known from previous versions, was ported over.

WHY

client applications, that simply use the /edrs api need a way to have their tokens automatically refreshed while providing a manual way to refresh tokens.

FURTHER NOTES

  • the old /edrs api is still available
  • the new /edrs api is available under /v2/edrs
  • a new test module containing tests for the new EDR API was added
  • introduced a matrix test strategy for e2e tests

Closes #1110

@paullatzelsperger paullatzelsperger added enhancement New feature or request Feature critical All issues that will definitely be in the milestone they are planned for labels Mar 18, 2024
@paullatzelsperger paullatzelsperger force-pushed the feat/1110_update_edr_api_2 branch 2 times, most recently from 4068558 to ccb6a09 Compare March 18, 2024 13:19
@paullatzelsperger paullatzelsperger force-pushed the feat/1110_update_edr_api_2 branch from ccb6a09 to 3a2c099 Compare March 18, 2024 13:22
@paullatzelsperger paullatzelsperger force-pushed the feat/1110_update_edr_api_2 branch 2 times, most recently from 54816bb to c901954 Compare March 18, 2024 14:21
@paullatzelsperger paullatzelsperger force-pushed the feat/1110_update_edr_api_2 branch from c901954 to 3d50a46 Compare March 18, 2024 15:01
@paullatzelsperger paullatzelsperger force-pushed the feat/1110_update_edr_api_2 branch from 5930ebb to 8751601 Compare March 18, 2024 17:06
return false;
}

var expiresIn = Long.parseLong(expiresInString);

Check notice

Code scanning / CodeQL

Missing catch of NumberFormatException Note

Potential uncaught 'java.lang.NumberFormatException'.
@paullatzelsperger paullatzelsperger force-pushed the feat/1110_update_edr_api_2 branch from 8751601 to 42e8ddf Compare March 18, 2024 17:11
Copy link

Quality Gate Passed Quality Gate passed

Issues
6 New issues
0 Accepted issues

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

See analysis details on SonarCloud

@paullatzelsperger paullatzelsperger merged commit e856f95 into eclipse-tractusx:main Mar 18, 2024
28 checks passed
@paullatzelsperger paullatzelsperger deleted the feat/1110_update_edr_api_2 branch March 18, 2024 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
critical All issues that will definitely be in the milestone they are planned for enhancement New feature or request Feature
Projects
Status: Merged
Development

Successfully merging this pull request may close these issues.

Incorporate and extend EDC's new /edrs controller
2 participants