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

WIP: Feature/group permissions2.0 #277

Open
wants to merge 28 commits into
base: develop
Choose a base branch
from

Conversation

Enquier
Copy link
Contributor

@Enquier Enquier commented Apr 17, 2024

Rebasing of groupPermissions adding the following in support of Local (mms-only) Groups:

  1. Authentication refactor to support clear User vs Auth workflows
  2. Group refactor adding API capabilities
  3. Group permission management (i.e. Admin Users who will be able to add/remove members from local (mms-only) groups).

@Enquier Enquier changed the title Feature/group permissions2.0 WIP: Feature/group permissions2.0 Apr 17, 2024

public List<String> getGroups() {
return groups;
public List<GroupJson> getGroups() {

Check notice

Code scanning / CodeQL

Exposing internal representation Note

getGroups exposes the internal representation stored in field groups. The value may be modified
after this call to getGroups
.
private class UserAttributesMapper implements ContextMapper<UserJson> {


public UserJson mapFromContext(Object ctx) throws NamingException {

Check notice

Code scanning / CodeQL

Missing Override annotation Note

This method overrides
ContextMapper.mapFromContext
; it is advisable to add an Override annotation.
return userPersistence.save(user);
}

public Collection<UserJson> getUsers() {

Check notice

Code scanning / CodeQL

Missing Override annotation Note

This method overrides
UsersDetailsService.getUsers
; it is advisable to add an Override annotation.
this.userPersistence = userPersistence;
}

public UserJson saveUser(UserJson user) {

Check notice

Code scanning / CodeQL

Missing Override annotation Note

This method overrides
UsersDetailsService.saveUser
; it is advisable to add an Override annotation.
saveUser(user);
}

public UserJson update(UserCreateRequest req, UserJson user) {

Check notice

Code scanning / CodeQL

Missing Override annotation Note

This method overrides
UsersDetailsService.update
; it is advisable to add an Override annotation.
}
g.setName(group.getName());
g.setType(group.getType());
logger.info("Saving group: {}", g.getName());

Check failure

Code scanning / CodeQL

Log Injection High

This log entry depends on a
user-provided value
.
return response;
@PreAuthorize("isAuthenticated()")
public GroupsResponse getAllGroups(
Authentication auth) {

Check notice

Code scanning / CodeQL

Useless parameter Note

The parameter 'auth' is never used.
@HuiJun
Copy link
Collaborator

HuiJun commented May 29, 2024

Why is gradlew an empty file now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants