ASP.NET Active Directory Authentication on one form

NamedOne

Environment: IIS7.5, .net 4.5
I want anonymous access to all of the pages except one. This one page must only be visible for users in my domain. This page should also automatically use users current windows domain account without asking him to enter it. If I use this setting in web.config/IIS:

authentication mode="Windows"

It asks for credentials for every page I try to open and when I enter my domain account I can see the page. So there are two problems with this. It did not restrict it just for one page and it did not use my windows account automatically. Is there any out of the box solution for this. Perhaps to allow anonymous access in ISS and use some attribute on the class to say it needs authentication?

Lon Prosser

You can allow anonymous access in IIS for the application folder, and set the authentication method to Integrated Windows authentication for just the page that you want to restrict.

How to configure Authentication in IIS

What browser type is prompting for credentials? In my experience Internet Explorer will automatically use windows accounts, but Firefox requires that I edit about:config:

  1. Open Firefox
  2. In the address bar type: about:config
  3. Firefox3.x and later requires you to agree that you will proceed with caution.
  4. Modify network.automatic-ntlm-auth.trusted-uris by double clicking the row and enter the host name(s) of your server.

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

Using Azure Active Directory authentication in ASP.NET Core 2.0 from Web App to Web API

分類Dev

Check if user authentication in Active DIrectory

分類Dev

ASP.NET Core 2.0 LDAP Active Directory認証

分類Dev

Is it possible to have both Azure AD and Individual Account authentication in one ASP.NET MVC application?

分類Dev

ASP.NET を使用した Windows Azure Active Directory シングル サインオン

分類Dev

ASP.Net Core SAML authentication

分類Dev

ASP.Net Core SAML authentication

分類Dev

ASP.Net Core SAML authentication

分類Dev

ASP.NET Core 2.0 authentication middleware

分類Dev

Windows Authentication with asp.net core

分類Dev

ASP.Net (C#) を使用して Azure Active Directory にグループ/ユーザーを作成する方法は?

分類Dev

Active Directory 認証を使用して ASP.NET Core Web アプリでユーザーを作成する

分類Dev

ローカル開発環境からの ASP.NET MVC 5 を使用した Active Directory による認証

分類Dev

Azure Active Directory で ASP.NET MVC WebAPI を認証するための Angular SPA を取得できません

分類Dev

Path of home directory in asp.net

分類Dev

Change authentication from no authentication to individual authentication in existing project of Asp.Net Core (MVC)

分類Dev

Using Azure Active Directory as an OAUTH2 Authentication service for a Spring-boot REST service

分類Dev

Using Azure Active Directory as an OAUTH2 Authentication service for a Spring-boot REST service

分類Dev

Asp .NET Dropdownlist Empty After Form Submit

分類Dev

Turn off / Disable windows authentication for asp.net-mvc

分類Dev

Issues with ASP.NET Forms Authentication on Phonegap (Android)

分類Dev

Custom Authentication using legacy user table in Asp.Net Core

分類Dev

Path based authentication in ASP.NET Core MVC 2.0

分類Dev

ASP.Net Core SignalR authentication always responding with 403 - Forbidden

分類Dev

WCF authentication using ASP.NET Membership Provider

分類Dev

Asp.net share forms authentication by two applications in the same domain

分類Dev

Show views based on authentication status in asp.net mvc

分類Dev

Asp.net 5 MVC 6 Custom authentication

分類Dev

Use ADFS-based authentication inside ASP.NET Core to access a SQL Server using Windows authentication?

Related 関連記事

  1. 1

    Using Azure Active Directory authentication in ASP.NET Core 2.0 from Web App to Web API

  2. 2

    Check if user authentication in Active DIrectory

  3. 3

    ASP.NET Core 2.0 LDAP Active Directory認証

  4. 4

    Is it possible to have both Azure AD and Individual Account authentication in one ASP.NET MVC application?

  5. 5

    ASP.NET を使用した Windows Azure Active Directory シングル サインオン

  6. 6

    ASP.Net Core SAML authentication

  7. 7

    ASP.Net Core SAML authentication

  8. 8

    ASP.Net Core SAML authentication

  9. 9

    ASP.NET Core 2.0 authentication middleware

  10. 10

    Windows Authentication with asp.net core

  11. 11

    ASP.Net (C#) を使用して Azure Active Directory にグループ/ユーザーを作成する方法は?

  12. 12

    Active Directory 認証を使用して ASP.NET Core Web アプリでユーザーを作成する

  13. 13

    ローカル開発環境からの ASP.NET MVC 5 を使用した Active Directory による認証

  14. 14

    Azure Active Directory で ASP.NET MVC WebAPI を認証するための Angular SPA を取得できません

  15. 15

    Path of home directory in asp.net

  16. 16

    Change authentication from no authentication to individual authentication in existing project of Asp.Net Core (MVC)

  17. 17

    Using Azure Active Directory as an OAUTH2 Authentication service for a Spring-boot REST service

  18. 18

    Using Azure Active Directory as an OAUTH2 Authentication service for a Spring-boot REST service

  19. 19

    Asp .NET Dropdownlist Empty After Form Submit

  20. 20

    Turn off / Disable windows authentication for asp.net-mvc

  21. 21

    Issues with ASP.NET Forms Authentication on Phonegap (Android)

  22. 22

    Custom Authentication using legacy user table in Asp.Net Core

  23. 23

    Path based authentication in ASP.NET Core MVC 2.0

  24. 24

    ASP.Net Core SignalR authentication always responding with 403 - Forbidden

  25. 25

    WCF authentication using ASP.NET Membership Provider

  26. 26

    Asp.net share forms authentication by two applications in the same domain

  27. 27

    Show views based on authentication status in asp.net mvc

  28. 28

    Asp.net 5 MVC 6 Custom authentication

  29. 29

    Use ADFS-based authentication inside ASP.NET Core to access a SQL Server using Windows authentication?

ホットタグ

アーカイブ