-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add access management for projeccts (#349)
* Draft basic ProjectRoleList * Draft grid which shows Users associated with project * Draft for Acl based permission management * Basic acl service implementation * Comment out ACL based permission handling * Refactor permission evaluator * add todo * Rename AclConfiguration.java to AclSecurityConfiguration.java * Provide basic frontend implementation * Implement User Selection Frontend * Implement ACL * change generation strategy to IDENTItY * Change packages * Add SQL Script for expected role setup * Fix broken test * Add Sid upon user registration * Fix tests * add admin role to every project * fix granting * Push adapted frontend * Push adapted frontend again * remove print command * Allow user to delete or add users to project access and implement hashcode and equals method in user * Show Roles from SID table in ProjectAccessComponent * Show Roles with access to project within ProjectAccessComponent * Grant rights for admin and project manager to projects * Extract first annotation CanCreateProject * Address Code Smells * Remove Todo for now * grant multiple permissions at once Co-authored-by: steffengreiner <[email protected]> * Audit success by default * add user permissions utility * set entry sid to null when deleting sids --------- Co-authored-by: Steffengreiner <[email protected]> Co-authored-by: steffengreiner <[email protected]>
- Loading branch information
1 parent
bf8e165
commit 3d4b95b
Showing
62 changed files
with
1,625 additions
and
484 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
...ication/src/main/java/life/qbic/authentication/domain/user/repository/SidDataStorage.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package life.qbic.authentication.domain.user.repository; | ||
|
||
/** | ||
* Indirection layer to persistence | ||
*/ | ||
public interface SidDataStorage { | ||
|
||
/** | ||
* adds an entry for sid | ||
* | ||
* @param sid the username or role | ||
* @param principal whether the sid is for a principal or a role | ||
*/ | ||
void addSid(String sid, boolean principal); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 0 additions & 23 deletions
23
authorization/src/main/java/life/qbic/authorization/ProjectPermissionService.java
This file was deleted.
Oops, something went wrong.
43 changes: 0 additions & 43 deletions
43
authorization/src/main/java/life/qbic/authorization/ProjectRole.java
This file was deleted.
Oops, something went wrong.
21 changes: 0 additions & 21 deletions
21
authorization/src/main/java/life/qbic/authorization/ProjectRoleRepository.java
This file was deleted.
Oops, something went wrong.
78 changes: 0 additions & 78 deletions
78
authorization/src/main/java/life/qbic/authorization/QbicPermissionEvaluator.java
This file was deleted.
Oops, something went wrong.
26 changes: 0 additions & 26 deletions
26
authorization/src/main/java/life/qbic/authorization/QbicProjectPermissionEvaluator.java
This file was deleted.
Oops, something went wrong.
43 changes: 0 additions & 43 deletions
43
authorization/src/main/java/life/qbic/authorization/QbicProjectPermissionServiceImpl.java
This file was deleted.
Oops, something went wrong.
36 changes: 0 additions & 36 deletions
36
authorization/src/main/java/life/qbic/authorization/QbicSystemPermissionServiceImpl.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.