Exploring, predicting and reporting with SAS Visual Analytics and SAS Visual Statistics

SAS Visual Analytics Report viewing from python web application

Reply
New Contributor
Posts: 2

SAS Visual Analytics Report viewing from python web application

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.

 

  

Contributor
Posts: 20

Re: SAS Visual Analytics Report viewing from python web application

Posted in reply to SaiBhargav

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
New Contributor
Posts: 2

Re: SAS Visual Analytics Report viewing from python web application

Posted in reply to foobarbaz

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. 

Ask a Question
Discussion stats
  • 2 replies
  • 150 views
  • 0 likes
  • 2 in conversation