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

reporting api token_auth="" access #10103

Closed
type0lang opened this issue Apr 28, 2016 · 2 comments
Closed

reporting api token_auth="" access #10103

type0lang opened this issue Apr 28, 2016 · 2 comments
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@type0lang
Copy link

The user anonymous has the "no access" flag set on.
if i do

curl -i -X POST -d '{"requests":["?idsite=1&url=http://example.org&action_name=Test bulk log Pageview&rec=1","?idsite=1&url=http://example.net/test.htm&action_name=Another bulk page view&rec=1"],"token_auth": ""}' http://localhost/piwik/piwik.php
HTTP/1.1 200 OK
Date: Thu, 28 Apr 2016 10:43:10 GMT
Server: Apache/2.4.7 (Ubuntu)
X-Powered-By: PHP/5.5.9-1ubuntu4.14
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Content-Length: 44
Content-Type: application/json

{"status":"success","tracked":2,"invalid":0}

I've got 200, and the requests are tracked.

@type0lang
Copy link
Author

notice the token_auth=""

@tsteur tsteur added the answered For when a question was asked and we referred to forum or answered it. label Apr 29, 2016
@tsteur
Copy link
Member

tsteur commented Apr 29, 2016

Hi @type0lang there is no token needed for tracking API, even bulk tracking. If you want to force an authentication try setting the config https://github.com/piwik/piwik/blob/2.16.1/config/global.ini.php#L677-L678

refs #5030

@tsteur tsteur closed this as completed Apr 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it.
Projects
None yet
Development

No branches or pull requests

2 participants