Get username in HTML5 module
Hi,
I have build a custom HTML module, and was wondering if it is possible to get the username of the user that is currently logged in to a site? In the SL viewer there is the OnAuthenticationSucceeded event that exposes login information, , but I could not find an equivalent in the HTML viewer api.
-
Hey Berend,
In HTML5-land the event is called AuthenticationSucceededEvent and it will contains the user's username and the token received.
Cheers,
Jason
0 -
Hi Jason,
Thanks for your reply.
It seems that this event is only raised when using the Geocortex Security Provider, and not with claims-based authentication, is that right? Is there another way to get the current username?
0 -
Hi Berend,
Any luck with this so far?
You could have a startup workflow which uses the Get Current User and then uses an activity handler to pass it into your module.
-Kevin
0
Please sign in to leave a comment.
Comments
3 comments