Moslem7026
Moslem7026

Reputation: 3338

Basic Authentication subdirectory in asp.net

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

Upvotes: 0

Views: 141

Answers (1)

Darin Dimitrov
Darin Dimitrov

Reputation: 1039438

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.

Upvotes: 1

Related Questions