Implement login/logout commands

Refactor the auth code into its own dagger module, add tests and use the new interfaces to implement the login and logout commands.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=149108266
This commit is contained in:
mmuller 2017-03-03 06:49:42 -08:00 committed by Ben McIlwain
parent 80f0910899
commit 5614760d53
10 changed files with 380 additions and 183 deletions

View file

@ -40,12 +40,11 @@ import javax.inject.Singleton;
@Component(
modules = {
AppEngineConnectionFlags.FlagsModule.class,
AuthModule.class,
ConfigModule.class,
DatastoreServiceModule.class,
CloudDnsWriterModule.class,
DefaultRequestFactoryModule.class,
DefaultRequestFactoryModule.AuthorizerModule.class,
DefaultRequestFactoryModule.DataStoreFactoryModule.class,
DefaultRequestFactoryModule.RequestFactoryModule.class,
DnsUpdateWriterModule.class,
DummyKeyringModule.class,
@ -72,6 +71,8 @@ interface RegistryToolComponent {
void inject(GenerateEscrowDepositCommand command);
void inject(GhostrydeCommand command);
void inject(ListCursorsCommand command);
void inject(LoginCommand command);
void inject(LogoutCommand command);
void inject(PendingEscrowCommand command);
void inject(SendEscrowReportToIcannCommand command);
void inject(SetupOteCommand command);