Skip to content

Commit

Permalink
Fix move sign key binding to auth module
Browse files Browse the repository at this point in the history
  • Loading branch information
akorneta committed Apr 11, 2018
1 parent 9469163 commit fa74608
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
import com.google.inject.AbstractModule;
import com.google.inject.name.Names;
import java.net.URI;
import java.security.PublicKey;
import org.eclipse.che.MachinePublicKeyProvider;
import org.eclipse.che.MachineTokenProvider;
import org.eclipse.che.UriApiEndpointProvider;
import org.eclipse.che.inject.DynaModule;
Expand All @@ -40,10 +38,6 @@ protected void configure() {
.annotatedWith(Names.named("wsagent.endpoint"))
.toProvider(WsAgentURLProvider.class);

bind(PublicKey.class)
.annotatedWith(Names.named("signature.public.key"))
.toProvider(MachinePublicKeyProvider.class);

bind(AppStateService.class);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
package org.eclipse.che.wsagent.server;

import com.google.inject.AbstractModule;
import com.google.inject.name.Names;
import java.security.PublicKey;
import org.eclipse.che.MachinePublicKeyProvider;
import org.eclipse.che.api.core.rest.HttpJsonRequestFactory;
import org.eclipse.che.commons.auth.token.ChainedTokenExtractor;
import org.eclipse.che.commons.auth.token.RequestTokenExtractor;
Expand All @@ -29,5 +32,8 @@ protected void configure() {
private void configureMultiUserMode() {
bind(HttpJsonRequestFactory.class).to(AgentHttpJsonRequestFactory.class);
bind(RequestTokenExtractor.class).to(ChainedTokenExtractor.class);
bind(PublicKey.class)
.annotatedWith(Names.named("signature.public.key"))
.toProvider(MachinePublicKeyProvider.class);
}
}

0 comments on commit fa74608

Please sign in to comment.