Add Taipy-specific and hidden parameters to navigate() #2388
Labels
🖰 GUI
Related to GUI
✨New feature
🟧 Priority: High
Must be addressed as soon
📝Release Notes
Impacts the Release Notes or the Documentation in general
Description
We had a request to allow a Taipy application to query another Taipy application page, potentially served by another Taipy GUI application.
This can be done using the params parameter to
navigate()
but then the URL is complemented with the query string that the requestee is willing to hide, for security reasons.Solution Proposed
navigate()
will be added a hidden_params parameter, with the same semantics as for params: a dictionary that holds string keys and serializable value.The
on_navigate
callback will receive an additional hidden_params parameter, set to a dictionary that reflects what was provided in the call tonavigate()
.Impact of Solution
Those parameters are encoded in the GET query header, so no POST is mandatory.
In order not to unintendedly overwrite the original headers configuration, each hidden parameter is propagated with an internal (and undocumented) prefix that identifies them before they're encoded in the query header.
Taipy GUI will decypher all that before
on_navigate
is triggered.Acceptance Criteria
Code of Conduct
The text was updated successfully, but these errors were encountered: