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

Problem with token authentication #11312

Closed
dalaius opened this issue Feb 1, 2017 · 11 comments
Closed

Problem with token authentication #11312

dalaius opened this issue Feb 1, 2017 · 11 comments
Labels
answered For when a question was asked and we referred to forum or answered it.
Milestone

Comments

@dalaius
Copy link

dalaius commented Feb 1, 2017

Piwik Version 3.0.0

Hi! Since updating to 3.0.0 we are receiving errors with the api token authentication.

The token url:
http://piwik.ourdomain.at/index.php?module=Widgetize&segment=pageUrl==http://link_to_some_page/&action=iframe&columns[]=nb_visits&moduleToWidgetize=VisitsSummary&actionToWidgetize=getEvolutionGraph&idSite=34&period=week&date=today&disableLink=1&widget=1&token_auth=[insert token]

will show this error message:
Fehler: Sie können auf diese Ressource nicht zugreifen, da es mindestens 'view'-Rechte für die Website-ID 34 benötigt.
Anmelden
(Error: You can't access this ressource, you need at least "view" rights for website-ID ...)

The user, whom the token url belongs to, can see this page, so the error is misleading.

@tsteur
Copy link
Member

tsteur commented Feb 1, 2017

The user, whom the token url belongs to, can see this page, so the error is misleading.

Do you maybe have a screenshot? Where do you see the error? Is is showing the page with data and the error?

@dalaius
Copy link
Author

dalaius commented Feb 2, 2017

We have it integrated in our cms. there's still data, but we get the error message.

2017-02-02-enterprise cms

@sgiehl
Copy link
Member

sgiehl commented Feb 2, 2017

This should be related to #11055 and was maybe fixed in 3.0.1-b3

@r4pp3l
Copy link

r4pp3l commented Feb 13, 2017

We're still having this issue with 3.0.1.
I put my observations here: #11135 (comment)

@mattab
Copy link
Member

mattab commented Feb 18, 2017

@r4pp3l

  • Please try upgrade to our latest beta: http://piwik.org/faq/how-to-update/faq_159/ -- maybe the issue is fixed there? let us know
  • if not, as the other ticket is closed, do you mind copying your observation here? I'm assigning it to 3.0.2 already but we look forward to your confirmation.

@mattab mattab added this to the 3.0.2 milestone Feb 18, 2017
@mattab mattab added the Waiting for user feedback Indicates the Matomo team is waiting for feedback from the author or other users. label Feb 18, 2017
@mattab
Copy link
Member

mattab commented Feb 19, 2017

Still cannot reproduce this even when not logged in... @r4pp3l @dalaius any chance you could email us a URL where we can see this bug in action, using latest 3.0.2 beta?

@mattab
Copy link
Member

mattab commented Feb 19, 2017

we can be contacted at: http://piwik.org/contact/

@mattab mattab removed this from the 3.0.2 milestone Feb 19, 2017
@r4pp3l
Copy link

r4pp3l commented Feb 20, 2017

@mattab Here is a paste of my observations from jan 19 (ticket #11135)

Our piwik installation updated from 2.17.0 to 3.0.1 on the weekend.

Since this update our users can no longer use the widgetized dashboard with the same error described here.

Is it possible that this problem is not yet completely fixed?

See the following screens:
This has the module=Live Request opened. I don't see the token_auth being "forwarded" here in any form.

1

This has the method=API.getWidgetMetadata Request opened. There's a valid "token_auth" under form data (post). So here it this seems to work

2

Is it possible that is problem was regarded as solved because the "test user" was logged in into the backend anyway? Because in that case the token_auth doesn't seem to matter and the dashboard's widget would therefore work nevertheless.

@r4pp3l
Copy link

r4pp3l commented Feb 20, 2017

In addition to that. I updated our piwik installation from 3.0.1 to 3.0.2b4. The Problem still exists. I will send you an url to a widget example via the aforementioned contact form in a moment.

Thanks in advance! It would be greatly appreciated if you could fix the issue. Maybe even in 3.0.2 ;) We have lots of people complaining.

@tsteur
Copy link
Member

tsteur commented Feb 21, 2017

Looking at the URL the problem is that you are using the Dashboard module directly instead of going through the Widgetize module.

The URL needs to look like this: http://demo.piwik.org/index.php?module=Widgetize&action=iframe&moduleToWidgetize=Dashboard&actionToWidgetize=index&idSite=3&period=week&date=yesterday

@tsteur tsteur closed this as completed Feb 21, 2017
@tsteur tsteur added answered For when a question was asked and we referred to forum or answered it. and removed Waiting for user feedback Indicates the Matomo team is waiting for feedback from the author or other users. labels Feb 21, 2017
@r4pp3l
Copy link

r4pp3l commented Feb 21, 2017

Thanks a lot!

@mattab mattab added this to the 3.0.2 milestone Feb 21, 2017
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

5 participants