diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/weblayer/oauth/RevokeTokenEndpoint.java b/src/main/java/ch/ethz/seb/sebserver/webservice/weblayer/oauth/RevokeTokenEndpoint.java index bb855b84..d082001d 100644 --- a/src/main/java/ch/ethz/seb/sebserver/webservice/weblayer/oauth/RevokeTokenEndpoint.java +++ b/src/main/java/ch/ethz/seb/sebserver/webservice/weblayer/oauth/RevokeTokenEndpoint.java @@ -12,7 +12,9 @@ import java.util.Collection; import javax.servlet.http.HttpServletRequest; +import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration; import org.springframework.context.ApplicationEvent; +import org.springframework.context.annotation.Import; import org.springframework.context.event.EventListener; import org.springframework.http.HttpStatus; import org.springframework.security.oauth2.common.OAuth2AccessToken; @@ -27,6 +29,7 @@ import ch.ethz.seb.sebserver.gbl.profile.WebServiceProfile; @Controller @WebServiceProfile +@Import(DataSourceAutoConfiguration.class) public class RevokeTokenEndpoint { private final ConsumerTokenServices tokenServices;