question about how wp-piwik is authorizing users
-
overview:
I am using wp multisite and want to display some site specific piwik data to authenticated users on the frontend (not wp-admin).wp-piwik is making the connection between wp and piwik (which is awesome, btw).
I have a section of each user’s site’s frontend that is displaying data from their piwik property.
I am using the http REST API for piwik to retrieve thier site’s data and using js to display it in their special frontend area.
However, when a logged in user of the site visits this special area and tries to view a chart, piwik redirects them to the piwik login. Obviously authentication is needed. They are already authenticated via wp cookies since they’re logged in but obviously piwik doesn’t recognize this.
My question is:
since wp-piwik kind of does the same thing, where in your code are you dealing with authentication? How are users able to see the data without authenticating to piwik?
I’d like to see how you did it and maybe borrow some ideas.As always, thanks for the help. I’d love to donate if you have a place to do so. Love this tool.
- The topic ‘question about how wp-piwik is authorizing users’ is closed to new replies.