简体   繁体   English

Identity Server Saml2AuthExtensions Idp启动了SSO,处理了重新放置

[英]Identity Server Saml2AuthExtensions Idp initiated SSO handling the respose

This is a follow up question to Identity Server Saml2AuthExtensions Idp initiated SSO 这是Identity Server Saml2AuthExtensions Idp启动的SSO的后续问题

We have got a client who wants to use Idp initiated SSO to login to our application. 我们有一个想要使用Idp发起的SSO登录到我们的应用程序的客户端。 We have managed to get to a point where this is now authenticating the user, calling back to our Identity Server instance but I'm now struggling to actually login the user on our side. 我们已经设法达到了对用户进行身份验证的方式,回叫我们的Identity Server实例,但是我现在正在努力地实际登录用户。

I used our standard ExternalCallback method to handle the response, but unlike the SP initialed login when we use SignInManager.GetExternalLoginInfoAsync() to build the session ready to login it's returning null, and I'm not really sure why, or if this is even what your are supposed to handle the call coming back in 我使用标准的ExternalCallback方法来处理响应,但与SP初始登录不同,当我们使用SignInManager.GetExternalLoginInfoAsync()来构建准备登录的会话时,它返回null,我不确定原因为何,或者甚至不是您应该处理的来电

Just to add, a SP initiated login works fine 只需添加,SP启动的登录即可正常运行

Cheers 干杯

Ok, i've sort of worked out how to do this now. 好的,我已经弄清楚了现在该怎么做。 I've written a version of the GetExternalLoginInfoAsync() method that doesn't check for a provider in the returned items. 我已经编写了GetExternalLoginInfoAsync()方法的版本,该版本不检查返回的项目中的提供程序。 This seems to work ok 这似乎工作正常

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM