From 3ec5a1ffd23293bfc68f367b6b4da9cc4042f976 Mon Sep 17 00:00:00 2001 From: Matthew Horridge Date: Mon, 23 Oct 2023 12:30:23 -0700 Subject: [PATCH] Updated Spring Boot and other dependencies. Set version for release --- pom.xml | 14 ++++++-------- .../WebProtegeAuthorizationServiceApplication.java | 11 +---------- 2 files changed, 7 insertions(+), 18 deletions(-) diff --git a/pom.xml b/pom.xml index b462a60..4640120 100644 --- a/pom.xml +++ b/pom.xml @@ -5,12 +5,12 @@ org.springframework.boot spring-boot-starter-parent - 2.5.3 + 3.1.3 edu.stanford.protege webprotege-authorization-service - 0.1.3 + 0.2.0 webprotege-authorization-service A service that checks users are authorized to execute operations in WebProtége @@ -45,7 +45,7 @@ edu.stanford.protege webprotege-ipc - 0.10.1 + 0.10.2 @@ -54,8 +54,6 @@ 0.9.3 - - org.springframework.boot spring-boot-starter-data-mongodb @@ -64,7 +62,7 @@ com.google.guava guava - 29.0-jre + 31.1-jre @@ -129,8 +127,8 @@ ${project.build.finalName}.jar - ${env.DOCKER_HUB_USER_NAME} - ${env.DOCKER_HUB_TOKEN} + + diff --git a/src/main/java/edu/stanford/protege/webprotege/authorization/WebProtegeAuthorizationServiceApplication.java b/src/main/java/edu/stanford/protege/webprotege/authorization/WebProtegeAuthorizationServiceApplication.java index 053f8ff..016af49 100644 --- a/src/main/java/edu/stanford/protege/webprotege/authorization/WebProtegeAuthorizationServiceApplication.java +++ b/src/main/java/edu/stanford/protege/webprotege/authorization/WebProtegeAuthorizationServiceApplication.java @@ -14,9 +14,6 @@ @Import(WebProtegeIpcApplication.class) public class WebProtegeAuthorizationServiceApplication implements CommandLineRunner { - @Autowired - AccessManager accessManager; - public static void main(String[] args) { SpringApplication.run(WebProtegeAuthorizationServiceApplication.class, args); } @@ -27,12 +24,6 @@ public RoleOracleImpl getRoleOracle() { } @Override - public void run(String... args) throws Exception { - accessManager.setAssignedRoles(Subject.forAnySignedInUser(), - ApplicationResource.get(), - Arrays.asList( - BuiltInRole.PROJECT_CREATOR.getRoleId(), - BuiltInRole.PROJECT_UPLOADER.getRoleId() - )); + public void run(String... args) { } }