#1 2015-04-06 19:31:28

Al3tz
Member
Registered: 2015-04-04

Embed dashboard without login

Hi everyone,
It's posible embed dashboard without login using httpauthexport ??
Regards

Offline

#2 2015-04-07 19:03:35

Arno Mittelbach
datenwerke
Registered: 2012-02-14

Re: Embed dashboard without login

Hi,

you can display dashboards via the URL

http://SERVER:PORT/reportserverbasedir/ReportServer.html#inlinedashboard/type:user

This will display the dashboard of the currently logged in user. If you want to expose this without a user being logged in you will need either some form of single-sign-on solution or use a script to automatically log a user in. The following simple script first logs in a user with id 1 and then redirects to the above URL

import net.datenwerke.security.service.authenticator.AuthenticatorService

def userID = 1
def url = "http://SERVER:PORT/reportserverbasedir/ReportServer.html#inlinedashboard/type:user"

def authservice = GLOBALS.getInstance(AuthenticatorService.class)
authservice.setAuthenticated(userID)

/* redirect */
httpResponse.sendRedirect(url)

All that is needed is to be able to access the script without being logged in. For this place the script in a folder (beneath the bin folder) and mark the folder as web accessible. You can then access the script via

http://SERVER:PORT/reportserverbasedir/scriptAccess?id=SCRIPT_ID

To debug scripts it helps to add the exception=true flag to the url. Note, however, that this solution logs in the user with the specified ID and hence a user could also access anything else within ReportServer to which the user was given permission.

Cheers
-Arno

Offline

#3 2015-04-07 19:20:01

Al3tz
Member
Registered: 2015-04-04

Re: Embed dashboard without login

Thanks for you quick reply, i plan use anonimous user with retrictred permissions (only dashboard view permission).
It's time to read seriously setup for script develop.

Greetings from Mexico
-Al3tz

Offline

#4 2015-12-09 03:30:52

sdavies68
Member
Registered: 2015-02-11

Re: Embed dashboard without login

When I try this I get

HTTP Status 404 - /reportserver/scriptAccess

type Status report

message /reportserver/scriptAccess

description The requested resource (/reportserver/scriptAccess) is not available.

Apache Tomcat/6.0.24

Offline

#5 2015-12-09 03:56:25

sdavies68
Member
Registered: 2015-02-11

Re: Embed dashboard without login

It worked it out the URL needed to be

http://<SERVER>:8080/reportserver/reportserver/scriptAccess?id=SCRIPTID

Offline

#6 2017-03-23 21:21:31

phillipjohnson
Member
From: Columbus, OH, USA
Registered: 2016-11-03
Website

Re: Embed dashboard without login

Is there a way to disable the write permissions on a dashboard? When I try to give the user only "read" access, the dashboard is just a white screen.

If not, would it make sense to add a hook so that anytime a change is made by that user, the dashboard is immediately reset?

Offline

#7 2017-03-29 11:48:43

eduardo
Administrator
Registered: 2016-11-01
Website

Re: Embed dashboard without login

Hi phillipjohnson,

the "standard" dashboard is a white screen, yes. But with "read" access, your user can import predefined dashboards but cannot make any change.
More information here: https://reportserver.net/en/guides/admi … anagement/
"Dashboard. The generic dashboard right controls the access to the Dashboard module. If reading right is set, the module is visible and can be used in a read only fashion. This means that users can import predefined dashboards but they cannot make any changes or create custom dashboards. If additionally the write permission is granted, users can fully use the dashboard component."

Cheers,
Eduardo

Offline

Board footer

Powered by FluxBB