I added the external api through zuul routes successfully in jhipster gateway. However when I test in postman, it is not asking for any authentication. I need to secure this external api with the authentication provided by jhipster. Please advise
Below is the code I use to add zuul routes.
ZuulProperties.ZuulRoute zuulRoute = new ZuulProperties.ZuulRoute();
String path = externalapis.getPath();
zuulRoute.setId(externalapis.getServiceId());
zuulRoute.setStripPrefix(true);
zuulRoute.setServiceId(externalapis.getServiceId());
zuulRoute.setPath("/"+externalapis.getServiceId()+"/**");
zuulRoute.setLocation(externalapis.getUrl());
zuulRoute.setUrl(externalapis.getUrl());
zuulRoute.setRetryable(true);
this.zuulProperties.getRoutes().put(externalapis.getServiceId(), zuulRoute);
this.discoveryClientRouteLocator.refresh();