identity server 4 windows authentication

DataNerd

I have followed a combination of these three resources for getting started with Identity Server 4.

  1. IdentityServer4.Quickstart.UI
  2. 4_ImplicitFlowAuthenticationWithExternal
  3. Combined_AspNetIdentity_and_EntityFrameworkStorage

The combination of the three were used in order to store users within the the database even from external providers. Also store Identity Server 4 configurations such as claims, roles, clients, and resources. My main issue right now is when running in IIS Express windows authentication works as expected. Once I publish to a full IIS server on my local machine I get a repeated popup to login when I hit the Windows external login page. I do not get that popup when running Identity Server 4 within IIS Express. In IIS Express, I am able to click the windows external authentication button. It routes through the app properly and successfully completes the login.

Any and all help is highly appreciated. I tried to include as many reproduction steps as possible so let me know if there is anything not clear.

Repeating Login Popup:

enter image description here

IIS is setup with Windows Auth and Anonymous Auth enabled.

enter image description here

Setup.CS (ConfigureServices method)

public void ConfigureServices(IServiceCollection services) {
        // Windows authentication is supported only by hosting Kestrel (Asp.net Core Web Server inside iis as a reverse proxy)
        // It is different than other Authentication methods because you don't Add the Authentication middleware like above.
        services.Configure<IISOptions>(options => {
            options.AuthenticationDisplayName = "Windows";
            options.AutomaticAuthentication = true;
        });

        services.AddMvc();

Program.cs

public static IWebHost BuildWebHost(string[] args) =>
        WebHost.CreateDefaultBuilder(args)
            .UseKestrel()
            .UseContentRoot(Directory.GetCurrentDirectory())
            .UseIISIntegration()
            .UseStartup<Startup>()
            .Build();
DataNerd

I luckily answered this myself. This in fact was not a software developer issue but was an environment configuration issue. Local loopback check since the app was deployed locally was causing the issue. https://support.microsoft.com/en-us/help/896861/you-receive-error-401-1-when-you-browse-a-web-site-that-uses-integrate

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

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

編集
0

コメントを追加

0

関連記事

分類Dev

Identity Server 4

分類Dev

Identity Server 4 Federation Gateway

分類Dev

Identity Server 4 for NodeJS API

分類Dev

In Identity Server 4, I have a User's identity but 0 Claims

分類Dev

Identity Server 4: adding claims to access token

分類Dev

Identity Server 4Swagger認証

分類Dev

Identity Server4とdocker

分類Dev

Is it possible to use a NoSQL for Identity Server 4?

分類Dev

Identity Server 4 Refresh Token Expiration Not Working

分類Dev

Identity Server 4 AddOidcStateDataFormatterCacheTimeToLiveの構成

分類Dev

Identity Server 4 の認証

分類Dev

Connect to SQL Server Windows Authentication using DBeaver

分類Dev

Authentication Required - Python CGI on Windows Server

分類Dev

IdentityServer4 with Windows authentication and custom claims

分類Dev

How do I use Windows auth with Identity Server 3?

分類Dev

How to use Identity Server 4 Sign-in with desktop/mobile apps

分類Dev

Identity Server 4, API unauthorized to call introspection endpoint

分類Dev

Identity Server4でnullのRefreshtoken

分類Dev

Identity Server 4Corsの問題

分類Dev

Identity Server4ユーザー管理API

分類Dev

Identity Server 4 / nativescriptがハングする

分類Dev

Identity Server4無限ループ

分類Dev

Extend configuration and operational data contexts of Identity Server 4

分類Dev

Identity Server 4 と Localhost 上の UWP

分類Dev

Identity Server4で役割クレームとしてWindows / ActiveDirectoryグループを取得する

分類Dev

.NET Core Identity Server 4認証VS Identity認証

分類Dev

Identity Server 4 + Identity Framework + Reactフロントエンド

分類Dev

#nginxhelp Reverse Proxy to Microsoft IIS Server with Windows Authentication on the Application

分類Dev

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

Related 関連記事

  1. 1

    Identity Server 4

  2. 2

    Identity Server 4 Federation Gateway

  3. 3

    Identity Server 4 for NodeJS API

  4. 4

    In Identity Server 4, I have a User's identity but 0 Claims

  5. 5

    Identity Server 4: adding claims to access token

  6. 6

    Identity Server 4Swagger認証

  7. 7

    Identity Server4とdocker

  8. 8

    Is it possible to use a NoSQL for Identity Server 4?

  9. 9

    Identity Server 4 Refresh Token Expiration Not Working

  10. 10

    Identity Server 4 AddOidcStateDataFormatterCacheTimeToLiveの構成

  11. 11

    Identity Server 4 の認証

  12. 12

    Connect to SQL Server Windows Authentication using DBeaver

  13. 13

    Authentication Required - Python CGI on Windows Server

  14. 14

    IdentityServer4 with Windows authentication and custom claims

  15. 15

    How do I use Windows auth with Identity Server 3?

  16. 16

    How to use Identity Server 4 Sign-in with desktop/mobile apps

  17. 17

    Identity Server 4, API unauthorized to call introspection endpoint

  18. 18

    Identity Server4でnullのRefreshtoken

  19. 19

    Identity Server 4Corsの問題

  20. 20

    Identity Server4ユーザー管理API

  21. 21

    Identity Server 4 / nativescriptがハングする

  22. 22

    Identity Server4無限ループ

  23. 23

    Extend configuration and operational data contexts of Identity Server 4

  24. 24

    Identity Server 4 と Localhost 上の UWP

  25. 25

    Identity Server4で役割クレームとしてWindows / ActiveDirectoryグループを取得する

  26. 26

    .NET Core Identity Server 4認証VS Identity認証

  27. 27

    Identity Server 4 + Identity Framework + Reactフロントエンド

  28. 28

    #nginxhelp Reverse Proxy to Microsoft IIS Server with Windows Authentication on the Application

  29. 29

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

ホットタグ

アーカイブ