Get logged in user with Smarty

Hey all, how do I use smarty to get the name of the logged in user? It would be easy if the authentication tool were included in $ENV, like $ENV.AUTHENTICATION_TOOL
then I could just do
But it doesn't exist, so in lieu what's the best way to go about this?
then I could just do
- Code: Select all
{$ENV.AUTHENTICATION_TOOL->getLoggedInUser()->val('Name')}
But it doesn't exist, so in lieu what's the best way to go about this?