Forum Discussion
bostrick
7 years agoContributor
Found the solution...
rest(...) is returning XML, which in the Freemarker template is represented by a custom node type. while ${node_var} as a convenience will extract and render a single text node, you need to work on the node_var with some operators to actually extract the text as a string. Here's my working solution....
<#assign sso_id=rest("/authentication/sessions/current/user/sso_id").value.@@text/> <#assign req = req.parameter("username", sso_id) />
Gory details here...
https://freemarker.apache.org/docs/xgui.html
--b
Related Content
- 10 years ago
- 11 years ago