【发布时间】:2017-10-19 05:35:13
【问题描述】:
背景: 使用 Kestrel 和 Apache 后面的 ASP.NET Core 作为反向代理。对本网站的所有流量使用 https 协议。
我的问题是,如何使用 Google API 在回调 uri 中强制使用 https 而不是 http 响应?
我在调用 Google API 后收到一条错误消息。错误消息是“错误:redirect_uri_mismatch”。我已经使用 https 作为协议在 Google API 控制台上正确设置了回调。
请求详情如下:
> response_type=code
client_id=myclientidnum.apps.googleusercontent.com
redirect_uri=http://mysub.domain.com/signin-google
scope=openid profile email
state=long_long_code
如果您有任何想法,请给我留言。
【问题讨论】:
标签: apache api reverse-proxy kestrel-http-server