Forum

This content is now out of date.

Visit Our Community

javascript api request for login

hi,

i'm using javascript api to embed a dashboard in our client's app.
my js code is:
options.username = "admin@yellowfin.com.au";
options.password = "test";
options.elementId = "myDashDiv";

yellowfin.loadDash(options);

i have an odd situation, that most of the time it works and open the dashboard correctly, and sometimes it asks the user for username & password.

i might add, that besides of using the jsAPI, i'm using SSO with the WS to open a full yellowfin environment.

is that a bug or am i doing something wrong?

thanks.
Hi Sharon,

It should not be asking for a password if you are using SSO.

Does it ask for a login once you are in the application and have left the browser open (with no YF activity) for quite some time? As I'm wondering if this is related to a timeout on the page.
Or does it ask you if you have 2 browser tabs open, and then go back to the 1st etc..?

Thanks,
David

hi david,

thanks for your answer.
i finally managed to understand what was my problem.
the company i work for doesn't have multicast license,
the problem was trying to open a report using jsAPI from 2 computers,
with the same user, which his username & password is hard coded in the js.

sharon.