From 684da72060f47fe3f5d92dae98cc3d4b34a4fd3e Mon Sep 17 00:00:00 2001 From: anhefti Date: Thu, 22 Feb 2024 14:27:57 +0100 Subject: [PATCH] fixed gui only profile annotations --- .../sebserver/webservice/weblayer/oauth/PreAuthProvider.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/weblayer/oauth/PreAuthProvider.java b/src/main/java/ch/ethz/seb/sebserver/webservice/weblayer/oauth/PreAuthProvider.java index 2aed9dbe..ed561890 100644 --- a/src/main/java/ch/ethz/seb/sebserver/webservice/weblayer/oauth/PreAuthProvider.java +++ b/src/main/java/ch/ethz/seb/sebserver/webservice/weblayer/oauth/PreAuthProvider.java @@ -10,12 +10,16 @@ package ch.ethz.seb.sebserver.webservice.weblayer.oauth; import javax.annotation.PostConstruct; +import ch.ethz.seb.sebserver.gbl.profile.WebServiceProfile; +import org.springframework.context.annotation.Lazy; import org.springframework.security.web.authentication.preauth.PreAuthenticatedAuthenticationProvider; import org.springframework.stereotype.Component; import ch.ethz.seb.sebserver.webservice.weblayer.WebServiceUserDetails; +@Lazy @Component +@WebServiceProfile public class PreAuthProvider extends PreAuthenticatedAuthenticationProvider { private final WebServiceUserDetails webServiceUserDetails;