以下のように記述すれば良い
Web.config
<system.web>
...
<authentication mode="Windows" />
<authorization>
<deny users="?" />
</authorization>
...
</system.web>
Viewからログイン名が欲しい場合は
<p>@User.Identity.Name</p>
Go to list of users who liked
More than 5 years have passed since last update.
以下のように記述すれば良い
Web.config
<system.web>
...
<authentication mode="Windows" />
<authorization>
<deny users="?" />
</authorization>
...
</system.web>
Viewからログイン名が欲しい場合は
<p>@User.Identity.Name</p>
Register as a new user and use Qiita more conveniently
Go to list of users who liked