小编Tro*_*ste的帖子

当原始请求为HTTPS时,AspNetCore.WsFederation获得Signin-WSFed重定向到HTTP

上下文是一个在端口HTTP上的Docker容器中托管的aspnetcore 2.1网站,并且使用了仅暴露HTTPS 443的Nginx反向代理。

该网站可以从外部通过HTTPS访问,它可以重定向到HTTPS上的STS网站,该网站可以重定向到HTTPS上的/ signin-wsfed。

但是,/ signin-wsfed 的响应位置是HTTP。

这是请求:

POST https://core-mydocker.####/signin-wsfed HTTP/1.1
Accept: image/gif, image/jpeg, image/pjpeg, application/x-ms-application, application/xaml+xml, application/x-ms-xbap, */*
Referer: https://sts-mydocker.####/Pages/Email/Default.aspx?wtrealm=https%3a%2f%2fcore-mydocker.####%2f&wa=wsignin1.0&wreply=https%3a%2f%2fcore-mydocker.####%2fsignin-wsfed&wctx=#####
Accept-Language: fr-FR,fr;q=0.8,en-GB;q=0.6,en;q=0.4,ja;q=0.2
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.2; WOW64; Trident/7.0)
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
Host: core-mydocker.####
Content-Length: 10612
Connection: Keep-Alive
Cache-Control: no-cache
Run Code Online (Sandbox Code Playgroud)

和响应:

HTTP/1.1 302 Found
Server: nginx/1.12.2
Date: Thu, 21 Feb 2019 09:39:34 GMT
Content-Length: 0
Connection: keep-alive
Cache-Control: no-cache
Pragma: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Location: http://core-mydocker.####/Authenticate
Set-Cookie: …
Run Code Online (Sandbox Code Playgroud)

c# ws-federation docker asp.net-core

6
推荐指数
1
解决办法
441
查看次数

标签 统计

asp.net-core ×1

c# ×1

docker ×1

ws-federation ×1