Skip to content
Snippets Groups Projects
Verified Commit bc4c9a6f authored by Timm Fitschen's avatar Timm Fitschen
Browse files

FIX: remove authtoken from InfoImpl.java

parent 5410950c
No related branches found
No related tags found
1 merge request!8F basic auth scheme
Pipeline #56588 passed
...@@ -4,8 +4,6 @@ import com.indiscale.fdo.manager.service.BaseController; ...@@ -4,8 +4,6 @@ import com.indiscale.fdo.manager.service.BaseController;
import com.indiscale.fdo.manager.service.api.model.GetInfo200Response; import com.indiscale.fdo.manager.service.api.model.GetInfo200Response;
import com.indiscale.fdo.manager.service.api.model.Info; import com.indiscale.fdo.manager.service.api.model.Info;
import com.indiscale.fdo.manager.service.api.operation.InfoApi; import com.indiscale.fdo.manager.service.api.operation.InfoApi;
import com.indiscale.fdo.manager.service.authentication.AuthenticationToken;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.CrossOrigin; import org.springframework.web.bind.annotation.CrossOrigin;
...@@ -15,8 +13,6 @@ import org.springframework.web.bind.annotation.RestController; ...@@ -15,8 +13,6 @@ import org.springframework.web.bind.annotation.RestController;
@CrossOrigin(origins = {"${react-dev-server}"}) @CrossOrigin(origins = {"${react-dev-server}"})
public class InfoImpl extends BaseController implements InfoApi { public class InfoImpl extends BaseController implements InfoApi {
@Autowired AuthenticationToken authToken;
@Value("${fdo.service.version}") @Value("${fdo.service.version}")
private String fdoServiceVersion; private String fdoServiceVersion;
...@@ -25,7 +21,6 @@ public class InfoImpl extends BaseController implements InfoApi { ...@@ -25,7 +21,6 @@ public class InfoImpl extends BaseController implements InfoApi {
@Override @Override
public ResponseEntity<GetInfo200Response> getInfo() { public ResponseEntity<GetInfo200Response> getInfo() {
System.out.println("authToken: " + authToken);
Info data = new Info().fdoServiceVersion(fdoServiceVersion).fdoSdkVersion(fdoSdkVersion); Info data = new Info().fdoServiceVersion(fdoServiceVersion).fdoSdkVersion(fdoSdkVersion);
return ResponseEntity.ok(new GetInfo200Response(data)); return ResponseEntity.ok(new GetInfo200Response(data));
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment