Read the Apache loged in user in WE app

Rather than creating a whole security model within our application we where thinking of using an Apache Realm to control access to the domain. In order to make this work I would need to be able to find out who logged in to the web browser window. In PHP this is easy. How do I access this in Xojo WE.
Thanks
Ian