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

My cockpit documents is not displaying while using the HTTPS protocole though the application is working fine.
Environment Knowage 7.1.5 CE , Windows 10
in Admin and Developer Functionalities by (380 points)
Hi,

did you check if there are errors inside browser console or logs?

Did you follow this documentation?

https://knowage-suite.readthedocs.io/en/7.1/installation-guide/cas-installation.html?highlight=https#configuration-of-the-https-protocol-for-tomcat

Thank you

regards

Matteo
Hi Matteo, thank you for your comment.

I also need to serve cockpits to users via HTTPS (mainly via REST api)
Do you know if CAS installation is mandatory in order to use https protocol ?

I only use AJP connector in my server.xml with redirectPort 8443.
But I noticed some conflicts with authentification and sessions.

Any input is welcome.
Regards
Dear rlagarde,

can you please explain to us better the environment and the configuration you're using?

CAS is not mandatory to use https protocol.

Please let us know more about your situation and the errors you're getting.

Regards

Matteo
Thank you for answering this.

I want to show a cockpit in a webpage from a different server than the one hosting knowage.

I use knowagesdk to inject the document in iframe.

documentInject call is placed in authenticate callback as in example here: https://github.com/KnowageLabs/Knowage-Server/blob/master/knowagesdk/src/main/webapp/example4_1_with_auth.jsp

This works in firefox after a refresh. It never works the first time as xhr.response is the html code of knowage login page. So i get an error trying to parse the expected json containing userId.

In chrome this doesn't work at all as CORB block the response because it doesn't match the expected content-type.

I also tried using CORS api like in this other example: https://github.com/KnowageLabs/Knowage-Server/blob/master/knowagesdk/src/main/webapp/loginJS_cors.jsp
but again it works in firefox after calling it twice but never worked in chrome.

If anything is still not clear or if there is a different method to do that
Please let me know.

Kind regards
Dear rlagarde,

can you use Knowage copy link feature instead of documentInject knowagesdk call?

Regards

Matteo
Documents use multi-schema datasource, so datasets depend on the user profile attribute.
I believe copy link feature only works for public user but maybe a user parameter can also be passed ?
Sorry but I don't understand what is the issue you are getting now.

Can you please recap it?

We spoke about a lot of varied arguments so... I think it is important now to focus on our main goal.

Thank you

Regards

Matteo
I'm sorry if my last comment was misleading.

The copy link feature works when I'm authentified in browser session.
Though, it takes me to the Knowage login page if I'm not.

So my problem is really authentication here as I want it to be transparent to user.
SDK authenticate function is not working for me in Chrome nor Edge over https.

I probably need to find a way to authenticate to knowage from the server side and send auth token/cookie to the client.

I commented on this question as you mentioned CAS installation in your answer and i thought it might solve my issue. This is not directly related to OP question and I don't want to bother you or bloat this thread.
I asked my own question earlier this month regarding my concerns here : https://www.knowage-suite.com/qa/6127/knowagesdk-calling-cockpit-on-https

Regards

Please log in or register to answer this question.

...