带有 WebAuthenticationBroker 的 IdentityServer3
IdentityServer3 with WebAuthenticationBroker
有人使用 IdentityServer3 和 WebAuthenticationBroker 在 windows 通用应用程序 (WUP) 中实施 SSO 吗?
出于某种原因,经纪人 class 决定 POST!在某个时候到 STS,它没有看到来自 STS 的正确重定向(以 ms-app://sid#tokens 的形式)。
我可以在 fiddler 跟踪中看到 STS 在最后一步中确实重定向到了正确的位置:
HTTP/1.1 302 找到
内容长度:0
位置:ms-app://s-1-15-2-38.../#code=0bdb86...&id_token=eyJ0eX...&access_token=eyJ0e... &token_type=Bearer&expires_in=7776000&scope=openid%20offline_access%20email&state=xyz&session_state=367wnzhjdQ2r9TiX7sZmQ03y_kjBMKNVVwr6xfuByQ0.cd1e1d29ed153a7b4743bd0f51def6a3
答案在这里(IdentityModel/IdentityModel.OidcClient.Samples):
https://github.com/IdentityModel/IdentityModel.OidcClient.Samples/tree/master/Uwp/UwpSample
有人使用 IdentityServer3 和 WebAuthenticationBroker 在 windows 通用应用程序 (WUP) 中实施 SSO 吗?
出于某种原因,经纪人 class 决定 POST!在某个时候到 STS,它没有看到来自 STS 的正确重定向(以 ms-app://sid#tokens 的形式)。
我可以在 fiddler 跟踪中看到 STS 在最后一步中确实重定向到了正确的位置: HTTP/1.1 302 找到 内容长度:0 位置:ms-app://s-1-15-2-38.../#code=0bdb86...&id_token=eyJ0eX...&access_token=eyJ0e... &token_type=Bearer&expires_in=7776000&scope=openid%20offline_access%20email&state=xyz&session_state=367wnzhjdQ2r9TiX7sZmQ03y_kjBMKNVVwr6xfuByQ0.cd1e1d29ed153a7b4743bd0f51def6a3
答案在这里(IdentityModel/IdentityModel.OidcClient.Samples): https://github.com/IdentityModel/IdentityModel.OidcClient.Samples/tree/master/Uwp/UwpSample