You are not logged in.
Pages: 1
Hi everyone,
It's posible embed dashboard without login using httpauthexport ??
Regards
Offline
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
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
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
It worked it out the URL needed to be
http://<SERVER>:8080/reportserver/reportserver/scriptAccess?id=SCRIPTID
Offline
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
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
Pages: 1