dotnetcore 2.2 MVC 应用程序和 ADFS 之间的 PING_PONG:身份验证失败 + 重定向

尼科西亚


当我在本地启动我的应用程序时,它按预期工作(除了重定向到 signin-wsfed:https://localhost:5001/signin-wsfed页面......但我不相信它可以链接)

部署后,我使用docker-compose进行部署,第一次连接重定向到ADFS认证页面,但是登录后,我被重定向到一个错误页面(有6个调用:回到我的应用程序,回到ADFS,应用程序,ADFS ...)

这是我的日志:

[root@myserver docker]# docker-compose up -d
Recreating engstats ...
Recreating engstats ... done
[root@myserver docker]# docker-compose logs --tail=50 -f engstats
Attaching to engstats
engstats       | info: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[0]
engstats       |       User profile is available. Using '/root/.aspnet/DataProtection-Keys' as key repository; keys will not be encrypted at rest.
engstats       | info: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[58]
engstats       |       Creating key {eafb1561-dc94-4ab7-892d-f15b6ee3b122} with creation date 2019-07-22 14:23:04Z, activation date 2019-07-22 14:23:04Z, and expiration date 2019-10-20 14:23:04Z.
engstats       | warn: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[35]
engstats       |       No XML encryptor configured. Key {eafb1561-dc94-4ab7-892d-f15b6ee3b122} may be persisted to storage in unencrypted form.
engstats       | info: Microsoft.AspNetCore.DataProtection.Repositories.FileSystemXmlRepository[39]
engstats       |       Writing data to file '/root/.aspnet/DataProtection-Keys/key-eafb1561-dc94-4ab7-892d-f15b6ee3b122.xml'.
engstats       | Hosting environment: Production
engstats       | Content root path: /app
engstats       | Now listening on: http://[::]:80
engstats       | Application started. Press Ctrl+C to shut down.
engstats       | info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
engstats       |       Request starting HTTP/1.1 GET http://engstats.xxx.com/
engstats       | info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0]
engstats       |       Executing endpoint 'xxx.Dashboard.Controllers.HomeController.Index (xxx.Dashboard)'
engstats       | info: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[3]
engstats       |       Route matched with {action = "Index", controller = "Home"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Index() on controller xxx.Dashboard.Controllers.HomeController (xxx.Dashboard).
engstats       | info: Microsoft.AspNetCore.Authorization.DefaultAuthorizationService[2]
engstats       |       Authorization failed.
engstats       | info: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[3]
engstats       |       Authorization failed for the request at filter 'Microsoft.AspNetCore.Mvc.Authorization.AuthorizeFilter'.
engstats       | info: Microsoft.AspNetCore.Mvc.ChallengeResult[1]
engstats       |       Executing ChallengeResult with authentication schemes ().
engstats       | info: Microsoft.AspNetCore.Authentication.WsFederation.WsFederationHandler[12]
engstats       |       AuthenticationScheme: WsFederation was challenged.
engstats       | info: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[2]
engstats       |       Executed action xxx.Dashboard.Controllers.HomeController.Index (xxx.Dashboard) in 499.6897ms
engstats       | info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1]
engstats       |       Executed endpoint 'xxx.Dashboard.Controllers.HomeController.Index (xxx.Dashboard)'
engstats       | info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
engstats       |       Request finished in 642.5432ms 302
engstats       | info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
engstats       |       Request starting HTTP/1.1 POST http://engstats.xxx.com/ application/x-www-form-urlencoded 7477
engstats       | info: Microsoft.AspNetCore.Cors.Infrastructure.CorsService[5]
engstats       |       CORS policy execution failed.
engstats       | info: Microsoft.AspNetCore.Cors.Infrastructure.CorsService[6]
engstats       |       Request origin https://fs.xxx.com does not have permission to access the resource.
engstats       | info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0]
engstats       |       Executing endpoint 'xxx.Dashboard.Controllers.HomeController.Index (xxx.Dashboard)'
engstats       | info: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[3]
engstats       |       Route matched with {action = "Index", controller = "Home"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Index() on controller xxx.Dashboard.Controllers.HomeController (xxx.Dashboard).
engstats       | info: Microsoft.AspNetCore.Authorization.DefaultAuthorizationService[2]
engstats       |       Authorization failed.
engstats       | info: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[3]
engstats       |       Authorization failed for the request at filter 'Microsoft.AspNetCore.Mvc.Authorization.AuthorizeFilter'.
engstats       | info: Microsoft.AspNetCore.Mvc.ChallengeResult[1]
engstats       |       Executing ChallengeResult with authentication schemes ().
engstats       | info: Microsoft.AspNetCore.Authentication.WsFederation.WsFederationHandler[12]
engstats       |       AuthenticationScheme: WsFederation was challenged.
engstats       | info: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[2]
engstats       |       Executed action xxx.Dashboard.Controllers.HomeController.Index (xxx.Dashboard) in 1.1351ms
engstats       | info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1]
engstats       |       Executed endpoint 'xxx.Dashboard.Controllers.HomeController.Index (xxx.Dashboard)'
engstats       | info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
engstats       |       Request finished in 5.1655ms 302
engstats       | info: Microsoft.AspNetCore.Server.Kestrel[32]
engstats       |       Connection id "0HLOEM0HV2CPL", Request id "0HLOEM0HV2CPL:00000001": the application completed without reading the entire request body.
engstats       | info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
engstats       |       Request starting HTTP/1.1 POST http://engstats.xxx.com/ application/x-www-form-urlencoded 7483
engstats       | info: Microsoft.AspNetCore.Cors.Infrastructure.CorsService[5]
engstats       |       CORS policy execution failed.
engstats       | info: Microsoft.AspNetCore.Cors.Infrastructure.CorsService[6]
engstats       |       Request origin https://fs.xxx.com does not have permission to access the resource.
engstats       | info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0]
engstats       |       Executing endpoint 'xxx.Dashboard.Controllers.HomeController.Index (xxx.Dashboard)'
engstats       | info: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[3]
engstats       |       Route matched with {action = "Index", controller = "Home"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Index() on controller xxx.Dashboard.Controllers.HomeController (xxx.Dashboard).
engstats       | info: Microsoft.AspNetCore.Authorization.DefaultAuthorizationService[2]
engstats       |       Authorization failed.
engstats       | info: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[3]
engstats       |       Authorization failed for the request at filter 'Microsoft.AspNetCore.Mvc.Authorization.AuthorizeFilter'.
engstats       | info: Microsoft.AspNetCore.Mvc.ChallengeResult[1]
engstats       |       Executing ChallengeResult with authentication schemes ().
engstats       | info: Microsoft.AspNetCore.Authentication.WsFederation.WsFederationHandler[12]
engstats       |       AuthenticationScheme: WsFederation was challenged.
engstats       | info: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[2]
engstats       |       Executed action xxx.Dashboard.Controllers.HomeController.Index (xxx.Dashboard) in 0.5585ms
engstats       | info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1]
engstats       |       Executed endpoint 'xxx.Dashboard.Controllers.HomeController.Index (xxx.Dashboard)'
engstats       | info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
engstats       |       Request finished in 1.1309ms 302
engstats       | info: Microsoft.AspNetCore.Server.Kestrel[32]
engstats       |       Connection id "0HLOEM0HV2CPM", Request id "0HLOEM0HV2CPM:00000001": the application completed without reading the entire request body.
engstats       | info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
engstats       |       Request starting HTTP/1.1 POST http://engstats.xxx.com/ application/x-www-form-urlencoded 7483
engstats       | info: Microsoft.AspNetCore.Cors.Infrastructure.CorsService[5]
engstats       |       CORS policy execution failed.
engstats       | info: Microsoft.AspNetCore.Cors.Infrastructure.CorsService[6]
engstats       |       Request origin https://fs.xxx.com does not have permission to access the resource.
engstats       | info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0]
engstats       |       Executing endpoint 'xxx.Dashboard.Controllers.HomeController.Index (xxx.Dashboard)'
engstats       | info: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[3]
engstats       |       Route matched with {action = "Index", controller = "Home"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Index() on controller xxx.Dashboard.Controllers.HomeController (xxx.Dashboard).
engstats       | info: Microsoft.AspNetCore.Authorization.DefaultAuthorizationService[2]
engstats       |       Authorization failed.
engstats       | info: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[3]
engstats       |       Authorization failed for the request at filter 'Microsoft.AspNetCore.Mvc.Authorization.AuthorizeFilter'.
engstats       | info: Microsoft.AspNetCore.Mvc.ChallengeResult[1]
engstats       |       Executing ChallengeResult with authentication schemes ().
engstats       | info: Microsoft.AspNetCore.Authentication.WsFederation.WsFederationHandler[12]
engstats       |       AuthenticationScheme: WsFederation was challenged.
engstats       | info: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[2]
engstats       |       Executed action xxx.Dashboard.Controllers.HomeController.Index (xxx.Dashboard) in 0.3882ms
engstats       | info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1]
engstats       |       Executed endpoint 'xxx.Dashboard.Controllers.HomeController.Index (xxx.Dashboard)'
engstats       | info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
engstats       |       Request finished in 0.8346ms 302
engstats       | info: Microsoft.AspNetCore.Server.Kestrel[32]
engstats       |       Connection id "0HLOEM0HV2CPN", Request id "0HLOEM0HV2CPN:00000001": the application completed without reading the entire request body.
engstats       | info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
engstats       |       Request starting HTTP/1.1 POST http://engstats.xxx.com/ application/x-www-form-urlencoded 7487
engstats       | info: Microsoft.AspNetCore.Cors.Infrastructure.CorsService[5]
engstats       |       CORS policy execution failed.
engstats       | info: Microsoft.AspNetCore.Cors.Infrastructure.CorsService[6]
engstats       |       Request origin https://fs.xxx.com does not have permission to access the resource.
engstats       | info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0]
engstats       |       Executing endpoint 'xxx.Dashboard.Controllers.HomeController.Index (xxx.Dashboard)'
engstats       | info: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[3]
engstats       |       Route matched with {action = "Index", controller = "Home"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Index() on controller xxx.Dashboard.Controllers.HomeController (xxx.Dashboard).
engstats       | info: Microsoft.AspNetCore.Authorization.DefaultAuthorizationService[2]
engstats       |       Authorization failed.
engstats       | info: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[3]
engstats       |       Authorization failed for the request at filter 'Microsoft.AspNetCore.Mvc.Authorization.AuthorizeFilter'.
engstats       | info: Microsoft.AspNetCore.Mvc.ChallengeResult[1]
engstats       |       Executing ChallengeResult with authentication schemes ().
engstats       | info: Microsoft.AspNetCore.Authentication.WsFederation.WsFederationHandler[12]
engstats       |       AuthenticationScheme: WsFederation was challenged.
engstats       | info: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[2]
engstats       |       Executed action xxx.Dashboard.Controllers.HomeController.Index (xxx.Dashboard) in 0.4174ms
engstats       | info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1]
engstats       |       Executed endpoint 'xxx.Dashboard.Controllers.HomeController.Index (xxx.Dashboard)'
engstats       | info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
engstats       |       Request finished in 0.8768ms 302
engstats       | info: Microsoft.AspNetCore.Server.Kestrel[32]
engstats       |       Connection id "0HLOEM0HV2CPO", Request id "0HLOEM0HV2CPO:00000001": the application completed without reading the entire request body.
engstats       | info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
engstats       |       Request starting HTTP/1.1 POST http://engstats.xxx.com/ application/x-www-form-urlencoded 7485
engstats       | info: Microsoft.AspNetCore.Cors.Infrastructure.CorsService[5]
engstats       |       CORS policy execution failed.
engstats       | info: Microsoft.AspNetCore.Cors.Infrastructure.CorsService[6]
engstats       |       Request origin https://fs.xxx.com does not have permission to access the resource.
engstats       | info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0]
engstats       |       Executing endpoint 'xxx.Dashboard.Controllers.HomeController.Index (xxx.Dashboard)'
engstats       | info: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[3]
engstats       |       Route matched with {action = "Index", controller = "Home"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Index() on controller xxx.Dashboard.Controllers.HomeController (xxx.Dashboard).
engstats       | info: Microsoft.AspNetCore.Authorization.DefaultAuthorizationService[2]
engstats       |       Authorization failed.
engstats       | info: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[3]
engstats       |       Authorization failed for the request at filter 'Microsoft.AspNetCore.Mvc.Authorization.AuthorizeFilter'.
engstats       | info: Microsoft.AspNetCore.Mvc.ChallengeResult[1]
engstats       |       Executing ChallengeResult with authentication schemes ().
engstats       | info: Microsoft.AspNetCore.Authentication.WsFederation.WsFederationHandler[12]
engstats       |       AuthenticationScheme: WsFederation was challenged.
engstats       | info: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[2]
engstats       |       Executed action xxx.Dashboard.Controllers.HomeController.Index (xxx.Dashboard) in 0.6451ms
engstats       | info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1]
engstats       |       Executed endpoint 'xxx.Dashboard.Controllers.HomeController.Index (xxx.Dashboard)'
engstats       | info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
engstats       |       Request finished in 1.239ms 302
engstats       | info: Microsoft.AspNetCore.Server.Kestrel[32]
engstats       |       Connection id "0HLOEM0HV2CPP", Request id "0HLOEM0HV2CPP:00000001": the application completed without reading the entire request body.
engstats       | info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
engstats       |       Request starting HTTP/1.1 POST http://engstats.xxx.com/ application/x-www-form-urlencoded 7503
engstats       | info: Microsoft.AspNetCore.Cors.Infrastructure.CorsService[5]
engstats       |       CORS policy execution failed.
engstats       | info: Microsoft.AspNetCore.Cors.Infrastructure.CorsService[6]
engstats       |       Request origin https://fs.xxx.com does not have permission to access the resource.
engstats       | info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0]
engstats       |       Executing endpoint 'xxx.Dashboard.Controllers.HomeController.Index (xxx.Dashboard)'
engstats       | info: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[3]
engstats       |       Route matched with {action = "Index", controller = "Home"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Index() on controller xxx.Dashboard.Controllers.HomeController (xxx.Dashboard).
engstats       | info: Microsoft.AspNetCore.Authorization.DefaultAuthorizationService[2]
engstats       |       Authorization failed.
engstats       | info: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[3]
engstats       |       Authorization failed for the request at filter 'Microsoft.AspNetCore.Mvc.Authorization.AuthorizeFilter'.
engstats       | info: Microsoft.AspNetCore.Mvc.ChallengeResult[1]
engstats       |       Executing ChallengeResult with authentication schemes ().
engstats       | info: Microsoft.AspNetCore.Authentication.WsFederation.WsFederationHandler[12]
engstats       |       AuthenticationScheme: WsFederation was challenged.
engstats       | info: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[2]
engstats       |       Executed action xxx.Dashboard.Controllers.HomeController.Index (xxx.Dashboard) in 0.4313ms
engstats       | info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1]
engstats       |       Executed endpoint 'xxx.Dashboard.Controllers.HomeController.Index (xxx.Dashboard)'
engstats       | info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
engstats       |       Request finished in 0.8877ms 302
engstats       | info: Microsoft.AspNetCore.Server.Kestrel[32]
engstats       |       Connection id "0HLOEM0HV2CPQ", Request id "0HLOEM0HV2CPQ:00000001": the application completed without reading the entire request body.

这是我的 Startup.cs 类的内容:

public class Startup : IStartup
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="Startup"/> class.
        /// </summary>
        /// <param name="configuration">The current configuration.</param>
        public Startup(IConfiguration configuration)
        {
            this.Configuration = configuration ?? throw new ArgumentNullException(nameof(configuration));
        }

        /// <summary>
        /// Gets the current configuration.
        /// </summary>
        public IConfiguration Configuration { get; }

        /// <summary>
        /// Defines the available services for this application.
        /// </summary>
        /// <param name="services">The list of services to update.</param>
        /// <returns>The initialized service provider for the application.</returns>
        public IServiceProvider ConfigureServices(IServiceCollection services)
        {
            string baseUrl = this.Configuration["RootUrl"] ?? "https://localhost:5001";

            if (services is null)
            {
                throw new ArgumentNullException(nameof(services));
            }

            services.AddCors(options =>
            {
                options.AddPolicy(
                    "default",
                    builder =>
                    {
                        builder.WithOrigins(baseUrl);
                    });
            });

            services.AddOptions();

            services.AddAuthentication(options =>
            {
                options.DefaultScheme = CookieAuthenticationDefaults.AuthenticationScheme;
                options.DefaultSignInScheme = CookieAuthenticationDefaults.AuthenticationScheme;
                options.DefaultChallengeScheme = WsFederationDefaults.AuthenticationScheme;
            })
            .AddWsFederation(options =>
            {
                // MetadataAddress represents the Active Directory instance used to authenticate users.
                options.MetadataAddress = "https://fs.xxx.com/FederationMetadata/2007-06/FederationMetadata.xml";

                // Wtrealm is the app's identifier in the Active Directory instance.
                // For ADFS, use the relying party's identifier, its WS-Federation Passive protocol URL:
                options.Wtrealm = baseUrl;
            })
            .AddCookie();
            services.AddHttpsRedirection(options => options.RedirectStatusCode = StatusCodes.Status301MovedPermanently);
            services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_2);

            services.AddSingleton<TeamsService>();

            services.AddSonarqubeClient(this.Configuration);
            services.AddJiraClient(this.Configuration);

            return services.BuildServiceProvider();
        }

        /// <summary>
        /// Configure the HTTP request pipeline and the available services.
        /// </summary>
        /// <param name="app">The current application builder.</param>
        public void Configure(IApplicationBuilder app)
        {
            if (app is null)
            {
                throw new ArgumentNullException(nameof(app));
            }

            IHostingEnvironment env = app.ApplicationServices.GetRequiredService<IHostingEnvironment>();

            app.UseExceptionMiddleware();

            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
            }

            app.UseCors("default");

            app.UseAuthentication();

            app.UseStaticFiles();
            app.UseMvc(routes =>
            {
                routes.MapRoute(
                    name: "default",
                    template: "{controller=Home}/{action=Index}/{id?}");
            });
        }
    }

我添加了 fs 作为公认的核心策略 (builder.WithOrigins),现在日志是:

engstats       | info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
engstats       |       Request starting HTTP/1.1 POST http://engstats.xxx.com/ application/x-www-form-urlencoded 7481
engstats       | info: Microsoft.AspNetCore.Cors.Infrastructure.CorsService[4]
engstats       |       CORS policy execution successful.
engstats       | info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0]
engstats       |       Executing endpoint 'xxx.Dashboard.Controllers.HomeController.Index (xxx.Dashboard)'
engstats       | info: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[3]
engstats       |       Route matched with {action = "Index", controller = "Home"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Index() on controller xxx.Dashboard.Controllers.HomeController (xxx.Dashboard).
engstats       | info: Microsoft.AspNetCore.Authorization.DefaultAuthorizationService[2]
engstats       |       Authorization failed.
engstats       | info: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[3]
engstats       |       Authorization failed for the request at filter 'Microsoft.AspNetCore.Mvc.Authorization.AuthorizeFilter'.
engstats       | info: Microsoft.AspNetCore.Mvc.ChallengeResult[1]
engstats       |       Executing ChallengeResult with authentication schemes ().
engstats       | info: Microsoft.AspNetCore.Authentication.WsFederation.WsFederationHandler[12]
engstats       |       AuthenticationScheme: WsFederation was challenged.
engstats       | info: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[2]
engstats       |       Executed action xxx.Dashboard.Controllers.HomeController.Index (xxx.Dashboard) in 0.406ms
engstats       | info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1]
engstats       |       Executed endpoint 'xxx.Dashboard.Controllers.HomeController.Index (xxx.Dashboard)'
engstats       | info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
engstats       |       Request finished in 0.8534ms 302
engstats       | info: Microsoft.AspNetCore.Server.Kestrel[32]
engstats       |       Connection id "0HLOEMR97B67V", Request id "0HLOEMR97B67V:00000001": the application completed without reading the entire request body.

我希望能够使用 ADFS 身份验证连接到我的应用程序...
谢谢您帮助我。

问候,
尼古拉斯

尼科西亚

我发现了这个问题。在 ADFS 中,依赖方标识符必须是https://engstats.xxx.com//signin-wsfed 在我的 ADFS 配置中

添加/signin-wsfed解决了这个问题

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

在OAuth2身份验证调用和重定向调用之间传递值

来自分类Dev

&>>&和2>&1之间的重定向差异

来自分类Dev

在 Web 应用程序和 API 之间设置 Kerberos 2 跃点身份验证

来自分类Dev

WebApi 2身份验证和ASP.NET MVC 5应用程序

来自分类Dev

OAuth2 / OpenID身份验证登录重定向未显示在电话Office Web应用程序或IOS Office Web应用程序中

来自分类Dev

ASP.NET Core RC2和.NET 4.5.1应用程序之间的共享cookie身份验证

来自分类Dev

ASP.NET Core RC2和.NET 4.5.1应用程序之间的共享cookie身份验证

来自分类Dev

无法在不同域上的窗口身份验证在不同域和mvc应用程序上设置ADFS

来自分类Dev

不创建应用程序用户的MVC 5身份(v2)身份验证

来自分类Dev

OAuth2对API进行身份验证-无法重定向回我的应用

来自分类Dev

在Angular2和Firebase中进行用户身份验证后进行重定向

来自分类Dev

使用 JHipster、Spring Security 和 oauth2 控制身份验证重定向

来自分类Dev

MVC 5和Web API之间的Owin身份验证(单独的IIS应用程序)

来自分类Dev

LibGit2Sharp:获取失败,并显示“重定向或身份验证重放过多”

来自分类Dev

处理OAuth 2.0身份验证-在ASP.NET MVC应用程序中获取令牌重定向令牌响应

来自分类Dev

可以和不能使用B2C进行身份验证的已注册应用程序之间有何区别?

来自分类Dev

可以将ADFS作为OAuth2提供程序/身份验证服务器吗?

来自分类Dev

如何使用身份服务器 3 对 2 个不同的 mvc 应用程序进行身份验证

来自分类Dev

如何将OAuth2身份验证令牌从MVC5 wep应用程序传递到WebAPI2应用程序

来自分类Dev

Spring MVC中的重定向和视图呈现之间的区别

来自分类Dev

如果用户未通过身份验证,则Apache 2.x和mod_proxy会产生重定向循环

来自分类Dev

在Azure B2C中,本机客户端的重定向URI和Web应用程序的重定向URL的用法是什么?

来自分类Dev

在 Webapp2 重定向之间传递参数

来自分类Dev

Azure移动应用程序身份验证和Azure AAD B2C

来自分类Dev

Symfony2骨架应用程序,具有来自SQL的身份验证和用户

来自分类Dev

Azure移动应用程序身份验证和Azure AAD B2C

来自分类Dev

Spring OAuth2和AngularJS应用程序中的身份验证/授权

来自分类Dev

Rails中的LinkedIn LinkedIn Omniauth OAuth 2-错误的重定向导致身份验证失败

来自分类Dev

Symfony2 phpunit功能测试自定义用户身份验证在重定向后失败(与会话相关)

Related 相关文章

  1. 1

    在OAuth2身份验证调用和重定向调用之间传递值

  2. 2

    &>>&和2>&1之间的重定向差异

  3. 3

    在 Web 应用程序和 API 之间设置 Kerberos 2 跃点身份验证

  4. 4

    WebApi 2身份验证和ASP.NET MVC 5应用程序

  5. 5

    OAuth2 / OpenID身份验证登录重定向未显示在电话Office Web应用程序或IOS Office Web应用程序中

  6. 6

    ASP.NET Core RC2和.NET 4.5.1应用程序之间的共享cookie身份验证

  7. 7

    ASP.NET Core RC2和.NET 4.5.1应用程序之间的共享cookie身份验证

  8. 8

    无法在不同域上的窗口身份验证在不同域和mvc应用程序上设置ADFS

  9. 9

    不创建应用程序用户的MVC 5身份(v2)身份验证

  10. 10

    OAuth2对API进行身份验证-无法重定向回我的应用

  11. 11

    在Angular2和Firebase中进行用户身份验证后进行重定向

  12. 12

    使用 JHipster、Spring Security 和 oauth2 控制身份验证重定向

  13. 13

    MVC 5和Web API之间的Owin身份验证(单独的IIS应用程序)

  14. 14

    LibGit2Sharp:获取失败,并显示“重定向或身份验证重放过多”

  15. 15

    处理OAuth 2.0身份验证-在ASP.NET MVC应用程序中获取令牌重定向令牌响应

  16. 16

    可以和不能使用B2C进行身份验证的已注册应用程序之间有何区别?

  17. 17

    可以将ADFS作为OAuth2提供程序/身份验证服务器吗?

  18. 18

    如何使用身份服务器 3 对 2 个不同的 mvc 应用程序进行身份验证

  19. 19

    如何将OAuth2身份验证令牌从MVC5 wep应用程序传递到WebAPI2应用程序

  20. 20

    Spring MVC中的重定向和视图呈现之间的区别

  21. 21

    如果用户未通过身份验证,则Apache 2.x和mod_proxy会产生重定向循环

  22. 22

    在Azure B2C中,本机客户端的重定向URI和Web应用程序的重定向URL的用法是什么?

  23. 23

    在 Webapp2 重定向之间传递参数

  24. 24

    Azure移动应用程序身份验证和Azure AAD B2C

  25. 25

    Symfony2骨架应用程序,具有来自SQL的身份验证和用户

  26. 26

    Azure移动应用程序身份验证和Azure AAD B2C

  27. 27

    Spring OAuth2和AngularJS应用程序中的身份验证/授权

  28. 28

    Rails中的LinkedIn LinkedIn Omniauth OAuth 2-错误的重定向导致身份验证失败

  29. 29

    Symfony2 phpunit功能测试自定义用户身份验证在重定向后失败(与会话相关)

热门标签

归档