I'm trying to publish a dashboard from Smart Reporting using the Java script API. But I cannot get it to work. If I'm logged in to SR in another tab it works just fine. But if I'm trying in a new session I'm redirected to a login screen.
My script looks like this:
I don't like that I have to print the password in cleartext. The dashboard is supposed to show on an public screen. The best solution would be to not show the password. But since it might not be possible I will try this solution.
Any ideas on how to solve this?