Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…uthorization-service into Configure_access_policies_for_WHOFIC_editors_#46

� Conflicts:
�	pom.xml
  • Loading branch information
soimugeo committed Jul 2, 2024
2 parents d00b5ec + fb87be8 commit ae868c3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
Expand Down Expand Up @@ -49,7 +49,7 @@
<dependency>
<groupId>edu.stanford.protege</groupId>
<artifactId>webprotege-ipc</artifactId>
<version>1.0.0</version>
<version>1.0.5</version>
</dependency>

<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public Collection<Subject> getSubjectsWithAccessToResource(Resource resource, Ac
private Collection<Subject> getSubjectsWithAccessToResource(Resource resource, Optional<ActionId> action) {
String projectId = toProjectId(resource);
Query query = query(where(PROJECT_ID).is(projectId));
action.ifPresent(a -> query.addCriteria(where(ACTION_CLOSURE).in(a.toString())));
action.ifPresent(a -> query.addCriteria(where(ACTION_CLOSURE).in(a.id())));
return mongoTemplate.find(query, RoleAssignment.class)
.stream()
.map(ra -> {
Expand Down
6 changes: 2 additions & 4 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
server:
port: 7771
logging:
level:
root: DEBUG

spring:
application:
name: AuthorizationService
Expand All @@ -19,8 +17,8 @@ spring:
auto-index-creation: true

webprotege.rabbitmq:
timeout: 60000
requestqueue: webprotege-authorization-queue
responsequeue: webprotege-authorization-response-queue
timeout: 60000

keycloak-issuer-url: http://webprotege-local.edu/auth/realms/webprotege/protocol/openid-connect/certs

0 comments on commit ae868c3

Please sign in to comment.