Class AuthModule

java.lang.Object
google.registry.tools.AuthModule

@Module public class AuthModule extends Object
Module providing the dependency graph for authorization credentials.
  • Constructor Details

    • AuthModule

      public AuthModule()
  • Method Details

    • provideLocalCredential

      @Provides @LocalCredential public static GoogleCredentialsBundle provideLocalCredential(@LocalCredentialJson String credentialJson, @Config("localCredentialOauthScopes") com.google.common.collect.ImmutableList<String> scopes)
    • providesLocalCredentialForCloudSqlClient

      @Provides @CloudSqlClientCredential public static com.google.auth.oauth2.GoogleCredentials providesLocalCredentialForCloudSqlClient(@LocalCredentialJson String credentialJson, @Config("localCredentialOauthScopes") com.google.common.collect.ImmutableList<String> credentialScopes)
    • provideAuthorizationCodeFlow

      @Provides public static com.google.api.client.googleapis.auth.oauth2.GoogleAuthorizationCodeFlow provideAuthorizationCodeFlow(com.google.api.client.json.JsonFactory jsonFactory, com.google.api.client.googleapis.auth.oauth2.GoogleClientSecrets clientSecrets, @Config("localCredentialOauthScopes") com.google.common.collect.ImmutableList<String> requiredOauthScopes, com.google.api.client.util.store.AbstractDataStoreFactory dataStoreFactory)
    • provideClientSecrets

      @Provides public static com.google.api.client.googleapis.auth.oauth2.GoogleClientSecrets provideClientSecrets(@Config("toolsClientId") String clientId, @Config("toolsClientSecret") String clientSecret, com.google.api.client.googleapis.auth.oauth2.GoogleClientSecrets.Details details)
    • provideLocalCredentialJson

      @Provides @LocalCredentialJson public static String provideLocalCredentialJson(dagger.Lazy<com.google.api.client.googleapis.auth.oauth2.GoogleClientSecrets> clientSecrets, @StoredCredential dagger.Lazy<com.google.api.client.auth.oauth2.Credential> credential, @Nullable @Config("credentialFilePath") String credentialFilePath)
    • provideDataStoreFactory

      @Provides @Singleton public static com.google.api.client.util.store.AbstractDataStoreFactory provideDataStoreFactory()