Skip to content

Commit 50ab119

Browse files
authored
Migrating to GoogleCredentials (firebase#71)
* Using new Google auth credentials from GCP * Added proactive token refresh logic * Removing unused method * Making a test util synchronous * Fixing a race condition * Handling negative refresh delays * Not notifying the credential listener for existing token * Synchronization in TokenRefresher * Using project ID option for verifying ID tokens * Arg check for project ID * Added a test case for signUrl() functionality in gcloud SDK * Migrated to google-auth-library v0.8 * Updated documentation; Moved getProjectId() logic to FirebaseApp; Removed addCredentialsChangedListener() from FirebaseApp * Responding to some code review feedback * Removing accidentally added test file * Improved FirebaseAuth lifecycle management * Cleaned up the TokenChangeListener interface of DB
1 parent 9117f75 commit 50ab119

46 files changed

Lines changed: 1027 additions & 1154 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

pom.xml

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,7 @@
312312
</build>
313313

314314
<dependencies>
315+
<!-- Google Cloud Platform dependencies -->
315316
<dependency>
316317
<groupId>com.google.api-client</groupId>
317318
<artifactId>google-api-client</artifactId>
@@ -333,31 +334,40 @@
333334
<artifactId>google-http-client</artifactId>
334335
<version>1.22.0</version>
335336
</dependency>
336-
<dependency>
337-
<groupId>org.json</groupId>
338-
<artifactId>json</artifactId>
339-
<version>20160810</version>
340-
</dependency>
341-
<dependency>
342-
<groupId>com.google.guava</groupId>
343-
<artifactId>guava</artifactId>
344-
<version>20.0</version>
345-
</dependency>
346337
<dependency>
347338
<groupId>com.google.api</groupId>
348339
<artifactId>api-common</artifactId>
349340
<version>1.1.0</version>
350341
</dependency>
342+
<dependency>
343+
<groupId>com.google.auth</groupId>
344+
<artifactId>google-auth-library-oauth2-http</artifactId>
345+
<version>0.8.0</version>
346+
</dependency>
351347
<dependency>
352348
<groupId>com.google.cloud</groupId>
353349
<artifactId>google-cloud-storage</artifactId>
354350
<version>1.2.1</version>
355351
</dependency>
352+
353+
<!-- Utilities -->
354+
<dependency>
355+
<groupId>com.google.guava</groupId>
356+
<artifactId>guava</artifactId>
357+
<version>20.0</version>
358+
</dependency>
359+
<dependency>
360+
<groupId>org.json</groupId>
361+
<artifactId>json</artifactId>
362+
<version>20160810</version>
363+
</dependency>
356364
<dependency>
357365
<groupId>org.slf4j</groupId>
358366
<artifactId>slf4j-api</artifactId>
359367
<version>1.7.25</version>
360368
</dependency>
369+
370+
<!-- Test dependencies -->
361371
<dependency>
362372
<groupId>org.mockito</groupId>
363373
<artifactId>mockito-core</artifactId>

0 commit comments

Comments
 (0)