BookmarkSubscribeRSS Feed
SaiBhargav
Calcite | Level 5

Hi All,

    Need your help.

    I'm trying to embed SAS Visual Analytics reports in python web application. I'm using SAS Report Viewer to view the reports through the URL parameters. It is again asking for a login. Can this problem be solved by enabling guest access?  Is there any alternative for viewing the reports through my python application like any package or API, etc?  I'm able to login into the Cloud Analytics Server(CAS) of SAS Viya (AMSIO) through the python SWAT package. Can this user session-id be used to view the SAS Visual Analytics reports in my web application?   

 

Thanks in Advance.

 

  

2 REPLIES 2
foobarbaz
Obsidian | Level 7

Hi,

As far as I know there is no way to pass a username / password combination through VisualAnalyticsViewer.

 

A colleague from my company presented a paper at last year's SGF on enabling social authentication on the mid tier.

http://support.sas.com/resources/papers/proceedings17/0993-2017.pdf

 

This thread discussed a similar problem and provided some options for authentication

https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-inside-my-portal-with-User-Authentication...

 

For reports with read access on PUBLIC the following * should * work (not tested).

 

import requests

params = {
	"reportViewOnly": "true",
	"reportName" : "SAS Visual Analytics Sample",
	"reportPath" : "/Products/SAS Visual Analytics/Samples",
}

url = "https://<myserver>":<port>/SASVisualAnalyticsViewer/VisualAnalyticsViewer.jsp"

resp = requests.get(url, params=params)
print(resp.text)
Regards,
Cameron | Selerity
SaiBhargav
Calcite | Level 5

Hi, 

 

  I have been working on the information in the links that you provided for authentication of SAS Viya. Thank you. Appreciate your help. I think integrated windows authentication in the middle tier must be configured for single sign on. will get back on this. 

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

Tips for filtering data sources in SAS Visual Analytics

See how to use one filter for multiple data sources by mapping your data from SAS’ Alexandria McCall.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 1155 views
  • 0 likes
  • 2 in conversation