Skip to content

Conversation

@kroikie
Copy link
Contributor

@kroikie kroikie commented Jan 25, 2019

Update config sample to use default application credential which is best practice for authenticating server side firebase application.

@kroikie
Copy link
Contributor Author

kroikie commented Jan 30, 2019

Will only merge when documentation that uses these snippets are ready.

"""
credentials = ServiceAccountCredentials.from_json_keyfile_name(
'service-account.json', SCOPES)
credentials = ServiceAccountCredentials.get_application_default().create_scoped(scopes=SCOPES)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should use the google-auth library here. oauth2client is no longer maintained.

@hiranya911 hiranya911 assigned kroikie and unassigned hiranya911 Sep 30, 2019
@kevinthecheung kevinthecheung force-pushed the master branch 5 times, most recently from 68f8d1f to 7f085d1 Compare April 29, 2020 22:57
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