Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • indra kurniawan 12 posts 32 karma points
    Nov 02, 2011 @ 11:05
    indra kurniawan
    0

    get isAuthenticated value and userName from aspx for Back office application (umbraco 4.7 asp.net 4.0)

    Hi, I am creating and admin aspx page to be placed in umbraco/plugins/[pluginName] folder.

    I need to the the current user info (isAuthenticated and userName).

    when I logged in as "admin" the user info I got by using Page.User.Identity property is incorrect

    Page.User.Identity
    {System.Security.Principal.GenericIdentity}
        [System.Security.Principal.GenericIdentity]: {System.Security.Principal.GenericIdentity}
        AuthenticationType: ""
        IsAuthenticated: false
        Name: ""

    and

    ((BasePage)Page).User.Identity
    {System.Security.Principal.GenericIdentity}
        [System.Security.Principal.GenericIdentity]: {System.Security.Principal.GenericIdentity}
        AuthenticationType: ""
        IsAuthenticated: false
        Name: ""

    How to get the isAuthenticated value and userName without using Umbraco API?

    The reason: I want my web project as independent as possible from Umbraco so other peope can use this userControl independent of any CMS.

    Thank you

Please Sign in or register to post replies

Write your reply to:

Draft