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

chore: some refactoring and cleanup #253

Conversation

paullatzelsperger
Copy link
Member

@paullatzelsperger paullatzelsperger commented Feb 1, 2024

What this PR changes/adds

this PR performs some refactoring and module restructuring:

  • AuthorizationService: signature change, now takes a SecurityContext instead of a Principal to enable easy customization of the role-based access control
  • module separation: the identityhub-api-auth module was split into an identityhub-api-authentication and identityhub-api-authorization module to allow for more modularity
  • introduced a constant ServicePrincipal.ROLE_ADMIN
  • ManagementApiConfiguration: a new abstract base class was introduced in the spi module to decouple the config module and the authentication module
  • ServicePrincipal and ServicePrincipalResolver were moved to spi

Why it does that

cleanup. also, in a subsequent PR documentation will follow, that will reference these changes. --> #254

Further notes

List other areas of code that have changed but are not necessarily linked to the main feature. This could be method
signature changes, package declarations, bugs that were encountered and were fixed inline, etc.

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 refactoring Changing directories, modules, structures, etc. without functional changes api breaking-change Will require manual intervention for version update labels Feb 1, 2024
@paullatzelsperger paullatzelsperger self-assigned this Feb 1, 2024
@paullatzelsperger paullatzelsperger force-pushed the chore/minor_refactoring_and_cleanup branch from 6e89d0e to a6de2f5 Compare February 1, 2024 15:15
@paullatzelsperger paullatzelsperger merged commit 51e737a into eclipse-edc:main Feb 2, 2024
12 checks passed
@paullatzelsperger paullatzelsperger deleted the chore/minor_refactoring_and_cleanup branch February 2, 2024 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api breaking-change Will require manual intervention for version update refactoring Changing directories, modules, structures, etc. without functional changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants