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

Support/1.17.x #575

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 13 additions & 12 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
<mongodb.spring-data.version>4.1.1</mongodb.spring-data.version>
<rdf4j.version>4.3.2</rdf4j.version>
<jwt.version>0.11.5</jwt.version>
<lombok.version>1.18.28</lombok.version>
<lombok.version>1.18.34</lombok.version>
<rdf-resolver.version>0.1.2-SNAPSHOT</rdf-resolver.version>

<!-- Test -->
Expand Down Expand Up @@ -93,14 +93,15 @@
</snapshots>
</repository>
<repository>
<id>nexus-releases</id>
<name>Nexus Releases</name>
<url>https://nexus.internal.fairdatapoint.org/repository/maven-releases/</url>
</repository>
<repository>
<id>nexus-snapshots</id>
<name>Nexus Snapshots</name>
<url>https://nexus.internal.fairdatapoint.org/repository/maven-snapshots/</url>
<!-- https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-apache-maven-registry -->
<!-- https://docs.github.com/en/actions/security-for-github-actions/security-guides/automatic-token-authentication#using-the-github_token-in-a-workflow -->
<!-- use <id> to specify github PAT in ~/.m2/settings.xml <server> section: https://maven.apache.org/settings.html#servers -->
<id>github-packages</id>
<name>Github Packages</name>
<url>https://maven.pkg.github.com/${env.GITHUB_REPOSITORY_OWNER}/*</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>

Expand Down Expand Up @@ -173,7 +174,7 @@
<artifactId>spring-boot-starter-validation</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<groupId>com.github.fairdatateam</groupId>
<artifactId>spring-security-acl-mongodb</artifactId>
<version>${spring.security.acl.mongo.version}</version>
</dependency>
Expand Down Expand Up @@ -248,12 +249,12 @@
<version>${lombok.version}</version>
</dependency>
<dependency>
<groupId>com.github.fairdevkit</groupId>
<groupId>com.github.fairdatateam</groupId>
<artifactId>rdf-resource-resolver-core</artifactId>
<version>${rdf-resolver.version}</version>
</dependency>
<dependency>
<groupId>com.github.fairdevkit</groupId>
<groupId>com.github.fairdatateam</groupId>
<artifactId>rdf-resource-resolver-api</artifactId>
<version>${rdf-resolver.version}</version>
</dependency>
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/nl/dtls/fairdatapoint/config/AclConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@
import org.springframework.security.access.expression.method.MethodSecurityExpressionHandler;
import org.springframework.security.acls.AclPermissionCacheOptimizer;
import org.springframework.security.acls.AclPermissionEvaluator;
import org.springframework.security.acls.dao.AclRepository;
import com.github.fairdatateam.security.acls.dao.AclRepository;
import org.springframework.security.acls.domain.*;
import org.springframework.security.acls.jdbc.LookupStrategy;
import org.springframework.security.acls.model.AclCache;
import org.springframework.security.acls.model.AclService;
import org.springframework.security.acls.model.PermissionGrantingStrategy;
import org.springframework.security.acls.mongodb.BasicLookupStrategy;
import org.springframework.security.acls.mongodb.MongoDBMutableAclService;
import com.github.fairdatateam.security.acls.mongodb.BasicLookupStrategy;
import com.github.fairdatateam.security.acls.mongodb.MongoDBMutableAclService;
import org.springframework.security.core.authority.SimpleGrantedAuthority;

import static java.lang.String.format;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
import nl.dtls.fairdatapoint.service.security.MongoAuthenticationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.security.acls.dao.AclRepository;
import com.github.fairdatateam.security.acls.dao.AclRepository;
import org.springframework.security.acls.model.AclCache;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.context.SecurityContextHolder;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
import static java.util.function.Predicate.isEqual;
import static nl.dtls.fairdatapoint.config.CacheConfig.LABEL_CACHE;
import static nl.dtls.fairdatapoint.util.ValueFactoryHelper.i;
import com.github.fairdevkit.rdf.resolver.api.ResourceResolver;
import com.github.fairdevkit.rdf.resolver.core.ContentNegotiationStrategy;
import com.github.fairdevkit.rdf.resolver.core.CoreResourceResolver;
import com.github.fairdevkit.rdf.resolver.core.PathExtensionStrategy;
import com.github.fairdatateam.rdf.resolver.api.ResourceResolver;
import com.github.fairdatateam.rdf.resolver.core.ContentNegotiationStrategy;
import com.github.fairdatateam.rdf.resolver.core.CoreResourceResolver;
import com.github.fairdatateam.rdf.resolver.core.PathExtensionStrategy;
import java.util.Optional;

import lombok.extern.slf4j.Slf4j;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@
import nl.dtls.fairdatapoint.service.user.CurrentUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.security.acls.dao.AclRepository;
import com.github.fairdatateam.security.acls.dao.AclRepository;
import org.springframework.security.acls.domain.BasePermission;
import org.springframework.security.acls.domain.MongoAcl;
import com.github.fairdatateam.security.acls.domain.MongoAcl;
import org.springframework.security.acls.domain.ObjectIdentityImpl;
import org.springframework.security.acls.domain.PrincipalSid;
import org.springframework.security.acls.model.*;
import org.springframework.security.acls.mongodb.MongoDBMutableAclService;
import com.github.fairdatateam.security.acls.mongodb.MongoDBMutableAclService;
import org.springframework.stereotype.Service;

import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ public static Document aclRepository(String persistentUrl) {
.append(FIELD_AUDIT_FAILURE, false)
.append(FIELD_AUDIT_SUCCESS, false));
acl.append("permissions", permissions);
acl.append("_class", "org.springframework.security.acls.domain.MongoAcl");
acl.append("_class", "com.github.fairdatateam.security.acls.domain.MongoAcl");
return acl;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
import org.springframework.beans.factory.annotation.Value;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.security.acls.dao.AclRepository;
import com.github.fairdatateam.security.acls.dao.AclRepository;
import org.springframework.security.acls.model.AclCache;
import org.springframework.stereotype.Service;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
import org.springframework.http.HttpStatus;
import org.springframework.http.RequestEntity;
import org.springframework.http.ResponseEntity;
import org.springframework.security.acls.dao.AclRepository;
import com.github.fairdatateam.security.acls.dao.AclRepository;
import org.springframework.security.acls.model.AclCache;

import java.net.URI;
Expand Down
Loading