0

is it possible to members accessing to one folder via http://user@pass:domain.com/folder/ and special role ? i used :

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

it redirect to login page , but i want if they want to download file in destination folder via software can download through entering user and pass directly not through web form

1 Answer 1

1

This only works with Basic Authentication. If you are using Forms Authentication then authenticated users are tracked with cookies and you cannot use such url.

Sign up to request clarification or add additional context in comments.

2 Comments

i should use virtual directory to accomplish this or it is possible via web.config in sub directory ?
Here's how you could enable basic authentication in IIS: iis.net/configreference/system.webserver/security/…

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.