diff --git a/backend/app/src/main/java/com/ugent/pidgeon/PidgeonApplication.java b/backend/app/src/main/java/com/ugent/pidgeon/PidgeonApplication.java index 969e2379..5ca00414 100644 --- a/backend/app/src/main/java/com/ugent/pidgeon/PidgeonApplication.java +++ b/backend/app/src/main/java/com/ugent/pidgeon/PidgeonApplication.java @@ -7,7 +7,7 @@ import org.springframework.web.bind.annotation.RestController; @RestController -@SpringBootApplication(scanBasePackages={"com.ugent.pidgeon","com.ugent.selab2"}) +@SpringBootApplication public class PidgeonApplication { @RequestMapping("/") diff --git a/backend/app/src/main/java/com/ugent/selab2/config/AuthConfig.java b/backend/app/src/main/java/com/ugent/pidgeon/config/AuthConfig.java similarity index 97% rename from backend/app/src/main/java/com/ugent/selab2/config/AuthConfig.java rename to backend/app/src/main/java/com/ugent/pidgeon/config/AuthConfig.java index 973801cc..7735e8e1 100644 --- a/backend/app/src/main/java/com/ugent/selab2/config/AuthConfig.java +++ b/backend/app/src/main/java/com/ugent/pidgeon/config/AuthConfig.java @@ -1,4 +1,4 @@ -package com.ugent.selab2.config; +package com.ugent.pidgeon.config; import org.springframework.beans.factory.annotation.Value; import org.springframework.boot.web.servlet.FilterRegistrationBean; diff --git a/backend/app/src/main/java/com/ugent/selab2/config/JwtAuthenticationFilter.java b/backend/app/src/main/java/com/ugent/pidgeon/config/JwtAuthenticationFilter.java similarity index 96% rename from backend/app/src/main/java/com/ugent/selab2/config/JwtAuthenticationFilter.java rename to backend/app/src/main/java/com/ugent/pidgeon/config/JwtAuthenticationFilter.java index 04d0ded0..c94a123a 100644 --- a/backend/app/src/main/java/com/ugent/selab2/config/JwtAuthenticationFilter.java +++ b/backend/app/src/main/java/com/ugent/pidgeon/config/JwtAuthenticationFilter.java @@ -1,4 +1,4 @@ -package com.ugent.selab2.config; +package com.ugent.pidgeon.config; import com.auth0.jwk.Jwk; import com.auth0.jwk.JwkException; @@ -8,8 +8,8 @@ import com.auth0.jwt.algorithms.Algorithm; import com.auth0.jwt.exceptions.SignatureVerificationException; import com.auth0.jwt.interfaces.DecodedJWT; -import com.ugent.selab2.model.Auth; -import com.ugent.selab2.model.User; +import com.ugent.pidgeon.model.Auth; +import com.ugent.pidgeon.model.User; import org.springframework.http.HttpStatus; import org.springframework.security.core.context.SecurityContextHolder; import org.springframework.util.StringUtils; diff --git a/backend/app/src/main/java/com/ugent/selab2/config/OAuth2ClientConfig.java b/backend/app/src/main/java/com/ugent/pidgeon/config/OAuth2ClientConfig.java similarity index 97% rename from backend/app/src/main/java/com/ugent/selab2/config/OAuth2ClientConfig.java rename to backend/app/src/main/java/com/ugent/pidgeon/config/OAuth2ClientConfig.java index ea7c1212..863c56ab 100644 --- a/backend/app/src/main/java/com/ugent/selab2/config/OAuth2ClientConfig.java +++ b/backend/app/src/main/java/com/ugent/pidgeon/config/OAuth2ClientConfig.java @@ -1,4 +1,4 @@ -package com.ugent.selab2.config; +package com.ugent.pidgeon.config; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.Bean; diff --git a/backend/app/src/main/java/com/ugent/selab2/config/WebConfig.java b/backend/app/src/main/java/com/ugent/pidgeon/config/WebConfig.java similarity index 93% rename from backend/app/src/main/java/com/ugent/selab2/config/WebConfig.java rename to backend/app/src/main/java/com/ugent/pidgeon/config/WebConfig.java index d56ad9c3..8b94ced5 100644 --- a/backend/app/src/main/java/com/ugent/selab2/config/WebConfig.java +++ b/backend/app/src/main/java/com/ugent/pidgeon/config/WebConfig.java @@ -1,4 +1,4 @@ -package com.ugent.selab2.config; +package com.ugent.pidgeon.config; import org.springframework.context.annotation.Configuration; import org.springframework.web.servlet.config.annotation.CorsRegistry; diff --git a/backend/app/src/main/java/com/ugent/selab2/controllers/AuthTestController.java b/backend/app/src/main/java/com/ugent/pidgeon/controllers/AuthTestController.java similarity index 82% rename from backend/app/src/main/java/com/ugent/selab2/controllers/AuthTestController.java rename to backend/app/src/main/java/com/ugent/pidgeon/controllers/AuthTestController.java index 50c05834..84c8082c 100644 --- a/backend/app/src/main/java/com/ugent/selab2/controllers/AuthTestController.java +++ b/backend/app/src/main/java/com/ugent/pidgeon/controllers/AuthTestController.java @@ -1,6 +1,6 @@ -package com.ugent.selab2.controllers; -import com.ugent.selab2.model.Auth; -import com.ugent.selab2.model.User; +package com.ugent.pidgeon.controllers; +import com.ugent.pidgeon.model.Auth; +import com.ugent.pidgeon.model.User; import jakarta.servlet.http.HttpServletRequest; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RestController; diff --git a/backend/app/src/main/java/com/ugent/selab2/model/Auth.java b/backend/app/src/main/java/com/ugent/pidgeon/model/Auth.java similarity index 98% rename from backend/app/src/main/java/com/ugent/selab2/model/Auth.java rename to backend/app/src/main/java/com/ugent/pidgeon/model/Auth.java index 21e3f40c..f458c8fe 100644 --- a/backend/app/src/main/java/com/ugent/selab2/model/Auth.java +++ b/backend/app/src/main/java/com/ugent/pidgeon/model/Auth.java @@ -1,4 +1,4 @@ -package com.ugent.selab2.model; +package com.ugent.pidgeon.model; import org.springframework.security.authentication.AbstractAuthenticationToken; import org.springframework.security.core.GrantedAuthority; diff --git a/backend/app/src/main/java/com/ugent/selab2/model/User.java b/backend/app/src/main/java/com/ugent/pidgeon/model/User.java similarity index 91% rename from backend/app/src/main/java/com/ugent/selab2/model/User.java rename to backend/app/src/main/java/com/ugent/pidgeon/model/User.java index 599db7f9..c94922dd 100644 --- a/backend/app/src/main/java/com/ugent/selab2/model/User.java +++ b/backend/app/src/main/java/com/ugent/pidgeon/model/User.java @@ -1,4 +1,4 @@ -package com.ugent.selab2.model; +package com.ugent.pidgeon.model; import java.util.List; diff --git a/backend/app/src/test/java/com/ugent/pidgeon/controllers/StaticAuthControllerTest.java b/backend/app/src/test/java/com/ugent/pidgeon/controllers/StaticAuthControllerTest.java index 124266ae..77145727 100644 --- a/backend/app/src/test/java/com/ugent/pidgeon/controllers/StaticAuthControllerTest.java +++ b/backend/app/src/test/java/com/ugent/pidgeon/controllers/StaticAuthControllerTest.java @@ -1,8 +1,7 @@ package com.ugent.pidgeon.controllers; -import com.ugent.selab2.model.User; -import com.ugent.selab2.model.Auth; -import com.ugent.selab2.controllers.AuthTestController; +import com.ugent.pidgeon.model.User; +import com.ugent.pidgeon.model.Auth; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; diff --git a/backend/app/src/test/java/com/ugent/pidgeon/model/AuthTest.java b/backend/app/src/test/java/com/ugent/pidgeon/model/AuthTest.java index bf7e3c7c..cac064ae 100644 --- a/backend/app/src/test/java/com/ugent/pidgeon/model/AuthTest.java +++ b/backend/app/src/test/java/com/ugent/pidgeon/model/AuthTest.java @@ -1,7 +1,5 @@ package com.ugent.pidgeon.model; -import com.ugent.selab2.model.Auth; -import com.ugent.selab2.model.User; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import org.springframework.boot.test.context.SpringBootTest; diff --git a/backend/app/src/test/java/com/ugent/pidgeon/model/UserTest.java b/backend/app/src/test/java/com/ugent/pidgeon/model/UserTest.java index 8f7487e1..73238ab3 100644 --- a/backend/app/src/test/java/com/ugent/pidgeon/model/UserTest.java +++ b/backend/app/src/test/java/com/ugent/pidgeon/model/UserTest.java @@ -1,6 +1,5 @@ package com.ugent.pidgeon.model; -import com.ugent.selab2.model.User; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import org.springframework.boot.test.context.SpringBootTest;