You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since the token is sent as part of the POST body (not in the URL), this should be considered a secure use and should succeed.
How can this be reproduced?
Create a user auth token with "Only allow secure requests" ticked
Perform a POST to the tracking API with the body content (fill in extra tracking details as desired; this should be the minimum to be successfully received):
{
"requests": ["?rec=1&idsite=1&cip=1.1.1.1"],
"token_auth": "<token from above>"
}
Observe failure to track
Create a new token with "Only allow secure requests" NOT ticked
The text was updated successfully, but these errors were encountered:
david-bezero
added
Potential Bug
Something that might be a bug, but needs validation and confirmation it can be reproduced.
To Triage
An issue awaiting triage by a Matomo core team member
labels
Jan 6, 2025
Hi @david-bezero. Thank you for creating the issue and bringing this to our attention, that's very appreciated. We have reviewed and triaged the problem internally, and we have confirmed it is an issue. Our team will prioritise this, and we will update you on the progress here when we have an update to share. If you have any further information or questions, please feel free to add them here.
randy-innocraft
added
triaged
Bug
For errors / faults / flaws / inconsistencies etc.
and removed
To Triage
An issue awaiting triage by a Matomo core team member
Potential Bug
Something that might be a bug, but needs validation and confirmation it can be reproduced.
labels
Jan 6, 2025
@michalkleiner can you tell me which header needs to be set for this? I've been following the documentation from here (which could probably do with updating if there's a better way to do this)
What happened?
The Tracking API's Bulk Tracking (POST) endpoint fails when called using an auth token (sent in the body) which is set to "secure use only":
Request:
Response:
After several requests, the caller IP gets blocked for too many invalid login attempts.
The same request with a token which is not marked as "secure use only" succeeds.
I see this has also been reported several months ago in the forums here: https://forum.matomo.org/t/token-auth-is-ignored-when-secure-only-is-set-to-1/59151
What should happen?
Since the token is sent as part of the POST body (not in the URL), this should be considered a secure use and should succeed.
How can this be reproduced?
Create a user auth token with "Only allow secure requests" ticked
Perform a POST to the tracking API with the body content (fill in extra tracking details as desired; this should be the minimum to be successfully received):
Observe failure to track
Create a new token with "Only allow secure requests" NOT ticked
Send the same request with this new token
Observe tracking success
Matomo version
cloud
PHP version
No response
Server operating system
No response
What browsers are you seeing the problem on?
Not applicable (e.g. an API call etc.)
Computer operating system
No response
Relevant log output
No response
Validations
The text was updated successfully, but these errors were encountered: