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 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 1306 views
  • 0 likes
  • 2 in conversation