Hi,
I enabled JWT on a PHPRunner App (app1)'s Welcome Page menu and link to another external PHPRunner app (app2).
It works flawlessly and well!
I have one challenge tho', the user table has another field, group_id which must also be passed to the external app2, in order to restrict
certain functions on app2.
I digged into the external.php file, i can simply modify the $url to have extra param, eg. :
$url = $url."?group_id=".$_SESSION["group_id"];
I can get this group_id value, when i echoed $_GET["group_id"] on App2.
But it is not ideal, as it is not safe to show the group_id on the URL, is there a way to use the JWT payload?
----
A suggestion for Sergy's Team to consider: Would be nice to have an extra field that can accept $_SESSION var,
in addition to the current Auth field for linking the external app. This value can be passed to external app using its payload.
Thanks.