Navigation Menu

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

Overlay API Calls: Not working with View and Admin rights #12635

Closed
TCahn opened this issue Mar 22, 2018 · 0 comments · Fixed by #12688
Closed

Overlay API Calls: Not working with View and Admin rights #12635

TCahn opened this issue Mar 22, 2018 · 0 comments · Fixed by #12688
Assignees
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Milestone

Comments

@TCahn
Copy link

TCahn commented Mar 22, 2018

Hi,
Overlay-Api Call’s didn’t work with View or Admin rights (only with “Super-User Rights”):

Scenario:

  1. Piwik-Account with view-rights (or admin-rights).
  2. Overlay.getFollowingPages Api-Call in a Browser without a Matomo-Login AND anonymous = No Access Rights <== Important!!! Example:
    https://demo.matomo.org/index.php?module=API&method=Overlay.getFollowingPages&url=https://forum.matomo.org/&idSite=7&period=year&date=yesterday&format=xml&token_auth=<USER-ACCOUNT-TOKEN –WITH-VIEW-RIGHT>
  3. Error: You can’t access this resource as it requires ‘view’ access for the website id = 7

=> Other Api-Methods with this "View-token" are working. For example: Actions.getPageUrl

More Information:

  • Overlay is working in the web interface (with this view-user-account).
  • The Overlay.getFollowingPages call is working, with "&token_auth=anonymous" after adding View-Rights to User "Anonymouse".
  • The Overlay.getFollowingPages call is working after adding "Super User Rights" to the account with the used token.

Could you please fix this bug.
Thank you! :-)
Thomas

@mattab mattab added the Bug For errors / faults / flaws / inconsistencies etc. label Mar 28, 2018
@mattab mattab added this to the Priority Backlog (Help wanted) milestone Mar 28, 2018
@sgiehl sgiehl self-assigned this Mar 30, 2018
@diosmosis diosmosis modified the milestones: Priority Backlog (Help wanted), 3.4.1 Apr 1, 2018
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

Successfully merging a pull request may close this issue.

4 participants