Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use default application credential #15

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Use default application credential #15

wants to merge 2 commits into from

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.

:return: Access token.
"""
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
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