ckan / ckanext-googleanalytics

CKAN extension to integrate Google Analytics data into CKAN. Gives download stats on package pages, list of most popular packages, etc.
GNU Affero General Public License v3.0
35 stars 81 forks source link

Google password? #15

Closed Vanuan closed 7 years ago

Vanuan commented 8 years ago

Why it requires google password? Google analytics doesn't require providing google password to track page views.

Vanuan commented 8 years ago

There's access token and refresh token available: https://developers.google.com/identity/protocols/OAuth2ForDevices

camfindlay commented 7 years ago

I think the password is required for it to pull tracking data back into CKAN.

You could also generate a 1 time password unique to the CKAN installation your using. Also given you set it in your environment configuration (not stored in a database or anything particularly migratable) which is outside of webroot exposure would only be to those with sysadmin access anyway presumably?

Still, OAuth token are I nice way to manage this type of thing. @Vanuan would you be interested in having a crack at re-implementing this to make use of tokens?

smotornyuk commented 7 years ago

@Vanuan , how about #26 - do you think that this solution solves the issue?

Vanuan commented 7 years ago

Yeah, I would think that Google service account allows to keep personal google account password secret.