Copied to clipboard

Flag this post as spam?

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


  • Connie DeCinko 931 posts 1160 karma points
    Oct 11, 2013 @ 00:47
    Connie DeCinko
    0

    Auto login all visitors to web site, even on unprotected pages

    I've finally got things working for the most part. If someone navigates to a protected page, the autologin is loaded, creates their account, logs them in and displays the page. All is good. However, I have these protected pages hidden in the navigation bar for unauthenticated users. So, if someone visits the site (an Intranet) they have no way to get to the protected pages since they are not in the nav.

    What I need is to log everyone in no matter what page they hit first, so when that page displays it shows all pages they have access to. I added the macro for autologin to the masterpage and that works when going to an unprotected page. However, when going to a protected page, it appears I end up with a conflict as the autologin is run twice?

    Thoughts on how you would tackle this?

     

  • Connie DeCinko 931 posts 1160 karma points
    Oct 29, 2013 @ 19:26
    Connie DeCinko
    0

    Bump.  How do I force all visitors to the site to login without having to set Umbraco security on the entire site?  I need to see if they are authorized to view certain pages in menus, search results, etc. based upon their credentials.

     

  • Connie DeCinko 931 posts 1160 karma points
    Nov 08, 2013 @ 19:13
    Connie DeCinko
    0

    Hello?  Is anyone still out there?

     

  • Connie DeCinko 931 posts 1160 karma points
    Nov 11, 2013 @ 16:16
    Connie DeCinko
    0

    Bump

  • Kevin Jump 2309 posts 14673 karma points MVP 7x c-trib
    Nov 11, 2013 @ 17:25
    Kevin Jump
    0

    Its not quite how authentication normally works but i think - (although i've not tested it) that you need to change the site from anonymous access to user in the web.config

    so setting

    <authorization>
    <deny users="?"/> 
    </system.web>
    

    will deny anonymous and force anyone who hasn't logged on and redirect them to a login ? regardless of umbraco page security.

    the other way is - if all your users are in a group (Like Domain Users) put that security on the top level of the site first, and this will force all users to logon to the site also ? (again i haven't tested it- but that should work)

Please Sign in or register to post replies

Write your reply to:

Draft