Skip to content

Commit

Permalink
Fix GA_KEY_CONTENT OpenSSL crypto error
Browse files Browse the repository at this point in the history
Forked because original maintainer is not review pull requests
This is the change proposed in:
tomdyson#44
  • Loading branch information
diogosilva30 authored Oct 2, 2021
1 parent e38d6e7 commit 45a7da5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wagalytics/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def get_access_token_from_str(ga_key_content):
SCOPE = 'https://www.googleapis.com/auth/analytics.readonly'

# Construct a credentials objects from the key data and OAuth2 scope.
keyDict = json.loads(ga_key_content.replace('\n', '').replace('\r', ''))
keyDict = json.loads(ga_key_content.replace('\n', '\\n'))
_credentials = ServiceAccountCredentials.from_json_keyfile_dict(
keyDict, SCOPE)

Expand Down

0 comments on commit 45a7da5

Please sign in to comment.