Skip to content

Allow to create FirebaseCredentials from GoogleCredentials#137

Merged
dmitrykuzmin merged 5 commits intomasterfrom
update-google-api-client
Mar 17, 2020
Merged

Allow to create FirebaseCredentials from GoogleCredentials#137
dmitrykuzmin merged 5 commits intomasterfrom
update-google-api-client

Conversation

@dmitrykuzmin
Copy link
Contributor

Before this PR, FirebaseCredentials expected a GoogleCredential instance to be passed when initializing in AppEngine environment.

The problem is, in later versions of google-api-client, the GoogleCredential type is already deprecated. Because spine-web depended on an older google-api-client version, this deprecation was not yet visible, but it caused problems in downstream projects.

This PR both bumps the version of google-api-client used and updates the FirebaseCredentials API so the type can be instantiated using the more "modern" class from google-auth-library.

Also update the `google-api-client` version to `1.30.9`.

The `GoogleCredential` type is already deprecated in this library version, so the correponding `FirebaseCredentials` initializer is deprecated too.
@dmitrykuzmin dmitrykuzmin self-assigned this Mar 17, 2020
@dmitrykuzmin dmitrykuzmin requested a review from armiol March 17, 2020 02:20
@codecov
Copy link

codecov bot commented Mar 17, 2020

Codecov Report

Merging #137 into master will increase coverage by 0.13%.
The diff coverage is 57.14%.

@@            Coverage Diff             @@
##             master   #137      +/-   ##
==========================================
+ Coverage     61.86%    62%   +0.13%     
- Complexity      172    178       +6     
==========================================
  Files            86     86              
  Lines          2103   2116      +13     
  Branches         37     38       +1     
==========================================
+ Hits           1301   1312      +11     
- Misses          792    795       +3     
+ Partials         10      9       -1

@dmitrykuzmin
Copy link
Contributor Author

@armiol PTAL.

@dmitrykuzmin dmitrykuzmin merged commit fd5761d into master Mar 17, 2020
@dmitrykuzmin dmitrykuzmin deleted the update-google-api-client branch March 17, 2020 13:52
@dmitrykuzmin dmitrykuzmin mentioned this pull request Sep 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants