Execute javascript code on button click

Hi, we have built a streamlit application that serves a couple of Html pages. Currently, Okta is enabled via ALB and here, we don’t get to modify the HTTP response, because streamlit doesn’t allow the HTTP response to be handled by us.

Here are the main two queries:

  • So, while we expect to have a logout button, is there any way we can call the Okta logout API directly from a button? We can’t delete/expire the cookie, because the HTTP response headers can’t be managed by us
  • Would it be possible to execute a javascript code on a button click so we can explore the logout functionality further

Thanks

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.