Piwik API - no password authentication method?


#1

Hi,

Hmm…
Currently the Piwik API has

UsersManager.getTokenAuth (userLogin, md5Password)

but it seems to return a token regardless of whether the user has inputted the correct password or a valid userlogin…

Do you have an existing API method to validate if this password is correct or wrong for the user (user created in the piwik dashboard) attempting to log in?
Right now I can’t really seem to properly validate if the user has inputted the right password or valid userlogin unless I try to use the token_auth parameter with the ‘retrieved token’ to call another API, say to display basic summary of the website.


(Matthieu Aubry) #2

unless I try to use the token_auth parameter with the ‘retrieved token’ to call another API, say to display basic summary of the website.

That’s the way to do it right now, we don’t expose authentication by user/password in the API directly