we are developing a custom aspx page and we need to retrieve username of loggedin user. We can cover our needs from both server-side and client-side approches. BSI open api documentation does not provide information. We already try to take a look at aspnet Principal (HttpContext.Current.User.Identity.Name), SessionState and Get/Post variables.
Did you have some workaround?
First of all, this is not an asp.net forum so maybe you will not get a lot of answer but "User.Identity.Name" is the right way to get the user's identity.
If you get nothing using this, the cause may be the settings of your IIS server.
You need to navigate to your application (in inetmgr) and modify the Authentication to enable Windows authentication. Do not forget to disable "Anonymous authentication".
And take note that the "User.Identity.Name" is not available when using the Visual Studio built-in IIS server.
Hi POssq,thank you so much for your suggestions but this is not our case. By enabling Windows Authentication the User.Identity.Name contains the LDAP userid but this is not our need.CA BSI has a Form Authentication enabled where you can specify a Username, a Password and an Organization; what we need is to get the username from a custom asp.net page.That page runs in the same CA BSI application pool. We can correctly access the session but no informations about the logged in User are available. Also cookies does not provide login informations.
Do you know some workaround?
Thanks a lot.
You should ask CA Support. The answer will likely come from CABSI dev team.
thanks for your help.
I'll ask to CA Support, and after a feedback from them I'll share the answer here.