CA Service Management

  • 1.  Is there a way to retrieve logged in username in custom page?

    Posted Dec 12, 2016 10:22 AM

    Hi Support, 

    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?

     

    Thanks.



  • 2.  Re: Is there a way to retrieve logged in username in custom page?

    Posted Dec 12, 2016 01:13 PM

    Hi cdg,

     

    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.



  • 3.  Re: Is there a way to retrieve logged in username in custom page?

    Posted Dec 20, 2016 08:29 AM

    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.



  • 4.  Re: Is there a way to retrieve logged in username in custom page?

    Posted Dec 20, 2016 09:15 AM

    You should ask CA Support. The answer will likely come from CABSI dev team.



  • 5.  Re: Is there a way to retrieve logged in username in custom page?

    Posted Dec 21, 2016 03:43 AM

    Ok POssq, 

    thanks for your help.

    I'll ask to CA Support, and after a feedback from them I'll share the answer here.

     

    See you.