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

Superuser Access to Internal API #679

Closed
robocoder opened this issue Apr 26, 2009 · 2 comments
Closed

Superuser Access to Internal API #679

robocoder opened this issue Apr 26, 2009 · 2 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc. wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it.
Milestone

Comments

@robocoder
Copy link
Contributor

I don't know if this is a regression from #379, but some might expect something like this to work:

$token = Zend_Registry::get('config')->superuser->password;
$request = new Piwik_API_Request('
            ...
            &token_auth='.$token.'
            ...
');

Instead this returns:

You can't access this resource as it requires a 'view' access for the website id = 1.
@mattab
Copy link
Member

mattab commented Apr 27, 2009

if it was working before, this wasn't an expected feature. token_auth is the hash given by the call to UsersManager.getTokenAuth and is a hash of the login and the md5 password.

@robocoder
Copy link
Contributor Author

Oops. My mistake. I was trying to whip up a small example in response to a question on the forum.

@robocoder robocoder added this to the RobotRock milestone Jul 8, 2014
@mattab mattab added the wontfix label Aug 3, 2014
This issue was closed.
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. wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it.
Projects
None yet
Development

No branches or pull requests

2 participants