Hi
The authentication mechanism for the SAS Visual Analytics SDK is different from the one used for the REST APIs. The blog series you mention is taking care of the authentication for the REST APIs. At this time for the VA SDK, you need to be authenticated through the SAS Logon Manager. Knowing this, you have different options for authenticating your users.
- Get the prompt as soon as the user opens the page.
- Be authenticated before accessing your page.
For the first option, you should include the logic in your web application to route the users to the SASLogon and retrieve the authentication token like described in the blog series.
The second option will be to configure a SSO for SAS Viya. You can then authenticate your users against that a third-party provider and the SSO will allow authentication of your users for the VA SDK.
There are discussions internally to provide in the SDK a kind of Login tag (like for va-report-object and other SDK related tags) but this is a work in progress and I don't have a date for the availability.
If you are building a portal like application, you might be interested by this: https://communities.sas.com/t5/SAS-Communities-Library/An-approach-to-SAS-Portal-in-Viya/ta-p/791388
It currently has two articles but a third one with the SAS Content SDK is coming next week and others will come nearly every month with topics like chatbot, authentication, Job execution integration, report integration, ...
Please let me know if you have questions.
Xavier
Xavier BIZOUX
Advisory Technical Architect ● Global Enablement and Learning
Technology Transfer and Governance, R&D