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

API.getPiwikVersion should be available to anonymous user when anonymous user has some 'view' access #5804

Closed
onpubcom opened this issue Jul 9, 2014 · 2 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Milestone

Comments

@onpubcom
Copy link

onpubcom commented Jul 9, 2014

For example, a Piwik API call using the 'anonymous' auth token used to work just fine in Piwik 2.3 for sites that have Anonymous Access enabled:

http://demo.piwik.org/index.php?module=API&method=API.getPiwikVersion&format=JSON&token_auth=anonymous

The demo.piwik.org site does have Anonymous Access enabled, but this API call now returns the following error:

"You must be logged in to access this functionnality."

Is it now the case that Piwik requires an authenticated user to use the REST API? As I said above, this used to work fine in Piwik 2.3, for sites with Anon Access enabled.

@mattab
Copy link
Member

mattab commented Jul 9, 2014

Thanks for report. This is by design, I've changed it here: c87a120

Other functions appart from API.getPiwikVersion should still work as expected for anonymous user.

@mattab mattab closed this as completed Jul 9, 2014
@tsteur tsteur modified the milestone: 2.5.0 - Piwik 2.5.0 Jul 10, 2014
@tsteur
Copy link
Member

tsteur commented Jul 10, 2014

Oh I did not see the API was changed here. This breaks Piwik Mobile 2, probably Piwik Mobile 1 as well.

@mattab mattab changed the title Anonymous API Access is broken in Piwik 2.4.0 API.getPiwikVersion should be available to anonymous user when anonymous user has some 'view' access Jul 10, 2014
@mattab mattab reopened this Jul 10, 2014
@mattab mattab closed this as completed in 4df4820 Jul 10, 2014
@mattab mattab added this to the Piwik 2.5.0 milestone Aug 3, 2014
@mattab mattab added the Bug label Aug 3, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Projects
None yet
Development

No branches or pull requests

3 participants