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

Authentify user whith token_auth in widgetize #1270

Closed
anonymous-matomo-user opened this issue Apr 1, 2010 · 1 comment · May be fixed by sandrogarcia/matomo#2
Closed

Authentify user whith token_auth in widgetize #1270

anonymous-matomo-user opened this issue Apr 1, 2010 · 1 comment · May be fixed by sandrogarcia/matomo#2
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical. wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it.

Comments

@anonymous-matomo-user
Copy link

Hi,

Thanks to the post [#5655],
I added thoses lines in plugins/Login/Login.php on line 68:

if(Piwik::getModule() === 'Widgetize')
       {
           $tokenAuthAPIInUrl = Piwik_Common::getRequestVar('token_auth', '', 'string');
         if( !empty($tokenAuthAPIInUrl))
            {
                $auth->setLogin($login = null);
                $auth->setTokenAuth($tokenAuthAPIInUrl);
                return;
            }
        }

With thoses, token_auth work in the widgetize and the user retreive his settings without login .
But I must set view permission for the Anonymous.
How could I do, if I want that the Anonymous is set to no access ?
In other terms, The token_auth in the url must log the user.
Thanks

@mattab
Copy link
Member

mattab commented Apr 1, 2010

Widgetize works without this hack, as long as you manually add token_auth in the widget URLs. The only known issue is with the last visit summary plugin: #1260

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical. wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants