X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=information-coordinator-service%2Fsrc%2Fmain%2Fjava%2Forg%2Foransc%2Fics%2Fcontrollers%2Fr1consumer%2FConsumerCallbacks.java;h=3db904d6a753c10a47959b5f1cafa8520d8c4287;hb=refs%2Fchanges%2F51%2F7951%2F3;hp=b96c160aedb72e2b5860582242e6d835b9cafe09;hpb=c9c6839d27aaad72ff7b3140992e0ade4b0f07bb;p=nonrtric.git diff --git a/information-coordinator-service/src/main/java/org/oransc/ics/controllers/r1consumer/ConsumerCallbacks.java b/information-coordinator-service/src/main/java/org/oransc/ics/controllers/r1consumer/ConsumerCallbacks.java index b96c160a..3db904d6 100644 --- a/information-coordinator-service/src/main/java/org/oransc/ics/controllers/r1consumer/ConsumerCallbacks.java +++ b/information-coordinator-service/src/main/java/org/oransc/ics/controllers/r1consumer/ConsumerCallbacks.java @@ -25,6 +25,7 @@ import com.google.gson.GsonBuilder; import org.oransc.ics.clients.AsyncRestClient; import org.oransc.ics.clients.AsyncRestClientFactory; +import org.oransc.ics.clients.SecurityContext; import org.oransc.ics.configuration.ApplicationConfig; import org.oransc.ics.repository.InfoType; import org.oransc.ics.repository.InfoTypeSubscriptions; @@ -45,9 +46,11 @@ public class ConsumerCallbacks implements InfoTypeSubscriptions.ConsumerCallback public static final String API_VERSION = "version_1"; - public ConsumerCallbacks(@Autowired ApplicationConfig config, - @Autowired InfoTypeSubscriptions infoTypeSubscriptions) { - AsyncRestClientFactory restClientFactory = new AsyncRestClientFactory(config.getWebClientConfig()); + @Autowired + public ConsumerCallbacks(ApplicationConfig config, InfoTypeSubscriptions infoTypeSubscriptions, + SecurityContext securityContext) { + AsyncRestClientFactory restClientFactory = + new AsyncRestClientFactory(config.getWebClientConfig(), securityContext); this.restClient = restClientFactory.createRestClientNoHttpProxy(""); infoTypeSubscriptions.registerCallbackhandler(this, API_VERSION); }