You can publish data apps to make them available outside of the Peliqan platform.
There are 3 modes to publish an app:
- Public: everyone with the link can access the app
- Peliqan users: only users logged in to Peliqan can access the app
- Embedded: embed in an intranet or portal
In each of the below scenarios you can add embed=true to the querystring of the URL of the app, in order to hide the Streamlit menu in the top right corner (with e.g. Rerun, Print etc.)
Public
Click on Save & Publish. The public URL of the published app will be shown. Anyone with the link can access the app.
You can still implement your own login mechanism in your app. More info.
Peliqan users
Click on Save & Publish. The URL of the published app will be shown. Only users that are logged in to Peliqan will have access to the app.
Embedded
Click on Save & Publish. The Embedding URL of the published app will be shown. Use this URL in an iframe to embed the app in an intranet or portal, with a session token added.
You need to first generate a session token (server-side) and add it to the query string of the URL of the app. The session token is valid for 60 seconds, it’s calculated based on the current timestamp and the App Embed Secret Key.
Example final URL for embedding (e.g. in an iFrame):
https://app.eu.peliqan.io/apps/UnVXaW…sydmlONA==/?embed=true&session_token=xxx
Example Python code:
Example TypeScript code: