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

Proposed Patch: HttpAuthLogin plugin support for token_auth API #1766

Closed
anonymous-matomo-user opened this issue Oct 13, 2010 · 3 comments
Closed
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

@anonymous-matomo-user
Copy link

  • Enable the HttpAuthLogin plugin
  • Try to access the http API with a token_auth.

It doesn't work.

There are two problems:

  1. the example htaccess should be modified so that index.php can be accessed without authentification.

  2. Even without any .htaccess, the API always returns empty answer when the plugin is enabled.

@anonymous-matomo-user
Copy link
Author

Attachment: Patch to enable API token_auth authentification
enable_token_auth.patch

@anonymous-matomo-user
Copy link
Author

To workaround the .htaccess problem, I simply did:

ln -s index.php token.php

and added token.php in the access all. Then, all API call use token.php instead of index.php.

Not a very good way to do that but, at least, it works

@mattab
Copy link
Member

mattab commented Nov 16, 2010

Please post your bug and patch in the related ticket for HttpAuthLogin in #514

@anonymous-matomo-user anonymous-matomo-user added this to the Piwik 1.0 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