Welcome to Knowage Q&A, where you can ask questions and receive answers from other members of the community.
+1 vote
1 view
Hello,

How can i use an iframe and don't ask a user to login, for example to have a chart that is open to everybody. Or how can i provide authentification in the url of the iframe?
Environment awas Ec2 container Ubuntu 16 Knowage 6.1.1
in End-user Environment by (130 points)

1 Answer

0 votes
Dear Eslem

at the time being, there is no "public user" functionality, but you can define a guest/guest user (for example) and then exploit the JavaScript SDK methods to authenticate the user and display the document within an iframe. See documentation here

https://knowage.readthedocs.io/en/latest/user/JS/README/index.html

As an alternative, you can also send guest user's credentials within the request with USERNAME and PASSWORD parameters, but it must be a POST request, not a GET request: in order to publish a POST request into an iframe, you can create a hidden FORM element within the HTML page, with POST method and specifying the iframe as the "target" attribute, and then submit the form automatically by JavaScript code.

Hope this helps

Best regards
by (2.3k points)
...