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 STS Accounts API #4493

Merged

Conversation

paullatzelsperger
Copy link
Member

@paullatzelsperger paullatzelsperger commented Sep 25, 2024

What this PR changes/adds

adds the STS Accounts API (+controller) to manage STS Accounts (formerly known as StsClients). To achieve that, the StsAccountService was extended to accommodate the new functionality like updating, deleting etc.

Why it does that

a way to manage STS Accounts is required

Further notes

  • a significant portion of the changeset was caused by the renaming StsClient... -> StsAccount...
  • the STS Accounts API comes with Token-based Auth by default, but that can be customized by registering an AuthenticationService for the "sts-accounts-api" context

Linked Issue(s)

Closes # <-- insert Issue number if one exists

Please be sure to take a look at the contributing guidelines and our etiquette for pull requests.

@paullatzelsperger paullatzelsperger added enhancement New feature or request api Feature related to the (REST) api labels Sep 25, 2024
* @param parameters Optional generator arguments, such as a salt value
* @return a randomly generated client secret.
*/
String generateClientSecret(@Nullable Object parameters);

Check notice

Code scanning / CodeQL

Useless parameter Note

The parameter 'parameters' is never used.
Copy link
Contributor

@wolf4ood wolf4ood left a comment

Choose a reason for hiding this comment

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

just minor nits

Co-authored-by: Enrico Risa <enrico.risa@gmail.com>
* @return The {@link TokenGenerationService}
*/
TokenGenerationService tokenGeneratorFor(StsClient client);
TokenGenerationService tokenGeneratorFor(StsAccount stsAccount);

Check notice

Code scanning / CodeQL

Useless parameter Note

The parameter 'stsAccount' is never used.
@paullatzelsperger paullatzelsperger merged commit f3b322a into eclipse-edc:main Sep 26, 2024
22 checks passed
@paullatzelsperger paullatzelsperger deleted the feat/add_sts_accounts_api branch September 26, 2024 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Feature related to the (REST) api enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants