diff --git a/plugins/fabric8-multi-tenant-manager/src/main/java/com/redhat/che/multitenant/OsoUserTokenInjector.java b/plugins/fabric8-multi-tenant-manager/src/main/java/com/redhat/che/multitenant/OsoUserTokenInjector.java index 1dc72b022..1edbd3827 100644 --- a/plugins/fabric8-multi-tenant-manager/src/main/java/com/redhat/che/multitenant/OsoUserTokenInjector.java +++ b/plugins/fabric8-multi-tenant-manager/src/main/java/com/redhat/che/multitenant/OsoUserTokenInjector.java @@ -15,7 +15,6 @@ import org.slf4j.Logger; import javax.inject.Inject; -import javax.inject.Named; import static java.lang.String.format; import static org.slf4j.LoggerFactory.getLogger; @@ -28,15 +27,12 @@ public class OsoUserTokenInjector { private static final Logger LOG = getLogger(OsoUserTokenInjector.class); - private final String fabric8UserServiceEndpoint; private final OpenshiftUserTokenProvider openshiftUserTokenProvider; private final TenantDataProvider tenantDataProvider; @Inject - public OsoUserTokenInjector(@Named("che.fabric8.user_service.endpoint") String fabric8UserServiceEndpoint, - OpenshiftUserTokenProvider openshiftUserTokenProvider, + public OsoUserTokenInjector(OpenshiftUserTokenProvider openshiftUserTokenProvider, TenantDataProvider tenantDataProvider) { - this.fabric8UserServiceEndpoint = fabric8UserServiceEndpoint; this.openshiftUserTokenProvider = openshiftUserTokenProvider; this.tenantDataProvider = tenantDataProvider; } @@ -75,6 +71,7 @@ public void injectToken(Subject subject) { // 1. Get OSO token for the user from keycloak // 2. Get OSO cluster and namespace (if namespace with type=user is available) // 3. Execute oc login against all the containers (or just the dev one) + // 4. Execute oc project } private String getUserDescription(Subject subject) {