Skip to content

Commit

Permalink
fixup! Apply OpenShift OAuth provider
Browse files Browse the repository at this point in the history
  • Loading branch information
vinokurig committed Feb 10, 2020
1 parent 677161e commit b08d082
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
1 change: 0 additions & 1 deletion assembly/assembly-wsmaster-war/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,6 @@
<dep>com.h2database:h2</dep>
<dep>org.eclipse.che.core:che-core-db-vendor-mysql</dep>
<dep>org.eclipse.che.core:che-core-sql-schema</dep>
<dep>org.eclipse.che.core:che-core-api-auth-openshift</dep>
<dep>org.eclipse.che.core:che-core-api-ssh-shared</dep>
<dep>org.eclipse.che.multiuser:che-multiuser-sql-schema</dep>
<dep>org.jgroups:jgroups</dep>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
import org.eclipse.che.security.PasswordEncryptor;
import org.eclipse.che.security.oauth.EmbeddedOAuthAPI;
import org.eclipse.che.security.oauth.OAuthAPI;
import org.eclipse.che.security.oauth.OpenShiftModule;
import org.eclipse.che.workspace.infrastructure.kubernetes.KubernetesInfraModule;
import org.eclipse.che.workspace.infrastructure.kubernetes.KubernetesInfrastructure;
import org.eclipse.che.workspace.infrastructure.kubernetes.environment.KubernetesEnvironment;
Expand Down Expand Up @@ -264,6 +265,8 @@ protected void configure() {
install(new TracingMetricsModule());
}
install(new ExecutorWrapperModule());

install(new OpenShiftModule());
}

private void configureSingleUserMode(Map<String, String> persistenceProperties) {
Expand Down
4 changes: 0 additions & 4 deletions wsmaster/che-core-api-auth-openshift/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,5 @@
<groupId>org.eclipse.che.core</groupId>
<artifactId>che-core-commons-annotations</artifactId>
</dependency>
<dependency>
<groupId>org.eclipse.che.core</groupId>
<artifactId>che-core-commons-inject</artifactId>
</dependency>
</dependencies>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,12 @@

import com.google.inject.AbstractModule;
import com.google.inject.multibindings.Multibinder;
import org.eclipse.che.inject.DynaModule;

/**
* Setup OpenShiftOAuthAuthenticator in guice container.
*
* @author Igor Vinokur
*/
@DynaModule
public class OpenShiftModule extends AbstractModule {
@Override
protected void configure() {
Expand Down

0 comments on commit b08d082

Please sign in to comment.