Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 11 of 11

Thread: is there an Appconfig to force login to view website

  1. #1
    jcohn1131 is offline Member
    Join Date
    Jan 2006
    Posts
    35

    Default is there an Appconfig to force login to view website

    In ML 8.1.2 for a B2b application.

    Is there an Appconfig that will redirect the user to the signin.aspx page until they have logged into the website.

    Do not allow the user to see any pages except the signin.aspx until they have successfully logged into the website.

    Is there an Appconfig parameter for this or do we need to build this functionality.

  2. #2
    ASPAlfred is offline Senior Member
    Join Date
    Nov 2007
    Posts
    2,244

    Default

    There is no appconfig for that, but you can simple to do in your web.config file. Find this lines:
    Code:
    <authorization>
        <allow users="*" />
    </authorization>
    ...and change it to
    Code:
    <authorization>
        <deny users="?" />
    </authorization>

  3. #3
    jcohn1131 is offline Member
    Join Date
    Jan 2006
    Posts
    35

    Default Task Complete

    This worked.

  4. #4
    medichoice is offline Junior Member
    Join Date
    May 2009
    Posts
    12

    Default not working

    This is not working for me in version 9. What am I doing wrong?

    Ideally I would like to show the login screen on the homepage. This should dissapear after the customer logs in.

    Example: bsd.officedepot.com

    Thx!

  5. #5
    cjbarth is offline Senior Member
    Join Date
    Oct 2008
    Posts
    392

    Default

    I set my site up that way. I just set it so that all products can only be purchased if your customer level matches or is higher than the level of the product. I then put an If...Then statement in my template.master page to display different menus before and after login.
    ML9.3.1.1
    SQL 2012 Express
    VS 2010
    Azure VM

  6. #6
    Justin is offline Member
    Join Date
    Oct 2010
    Posts
    30

    Default

    I am using this for version 9. It kind of works. But there are ways around it. I found on my site if I close out the pop up login box then go to the create account page. Without creating an account, I gain full access to the site again.

    Also, I cant actually login using the popup sign in box.

    Anyone else have these same issues? And any fixes for them yet?

  7. #7
    ASPAlfred is offline Senior Member
    Join Date
    Nov 2007
    Posts
    2,244

    Default

    Can you post the URL of your site so I can try? There is no login popup box, so that might be a customization issue.

  8. #8
    Justin is offline Member
    Join Date
    Oct 2010
    Posts
    30

    Default

    http://wholesale.toofast.co/

    You should see just a sign in box. I have not added any customizations to add this. This what it does when I followed the instructions from this thread.

    Version 9 SP1

  9. #9
    ASPAlfred is offline Senior Member
    Join Date
    Nov 2007
    Posts
    2,244

    Default

    That's not AspDotNetStorefront authentication, that's something you had configured in the IIS. It seems to me that you had it set to Windows Authentication instead of Anonymous.

    You can re-set that by following this article from Microsoft.

  10. #10
    toofast is offline Senior Member
    Join Date
    Dec 2005
    Location
    Cherry Hill, NJ, USA
    Posts
    239

    Default

    i didn't change anything in IIS. to proof this, i set my web.config code back to use the original code:
    HTML Code:
    <authorization>
          <allow users="*" />
    </authorization>
    and now my sites works like normal: http://wholesale.toofast.co

    i did notice in the web.config file that this code occurs 4 times:
    HTML Code:
    <authorization>
          <allow users="*" />
    </authorization>
    i tried changing all of theme to:
    HTML Code:
    <authorization>
        <deny users="?" />
    </authorization>
    but that didn't work either. i am on Multi-Store 9013 version.

  11. #11
    Justin is offline Member
    Join Date
    Oct 2010
    Posts
    30

    Default

    I just checked this and it is disabled. By placing the original code back to:

    <allow users="*" />

    Wouldn't this cause the same popup to appear if Windows Authentication was enabled?