本文介绍了设置“返回URL".使用WIF.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Hi,
我需要为IDP建立一个客户端,所以我正在使用WIF组件.
我看到我应该在此部分配置我的web.config:
I need to build a client to a IDP, so I'm using the WIF components.
I saw that I should configure my web.config with this section:
<system.identityModel.services>
<federationConfiguration>
<cookieHandler requireSsl="false" />
<wsFederation passiveRedirectEnabled="true" issuer="http://stubidp.kentor.se" realm="http://localhost:26756/" reply="http://localhost:26756/" requireHttps="false" />
<!-- If installing SSO on a load-balanced server or cloud environment, specify for findValue the same thumbprint as the trustedIssuers. This will enable RSA cookie encryption instead of DPAPI, thus bypassing the cookie size limit -->
<serviceCertificate>
<certificateReference x509FindType="FindByThumbprint" findValue=""/>
</serviceCertificate>
</federationConfiguration>
</system.identityModel.services>
在这种情况下,我的存根IDP为: http://stubidp.kentor.se
当我这样重定向到该IDP时:
Where my stub IDP in this case is: http://stubidp.kentor.se
When I redirect to this IDP like so:
FederatedAuthentication.WSFederationAuthenticationModule.RedirectToIdentityProvider("http://stubidp.kentor.se/Metadata", "http://localhost:26756/user", true);
它可以正常工作,并且我可以看到IDP的登录屏幕,但是我不知道如何告诉用户登录时该URL来重定向用户.
It works fine and I see the IDP's login screen, but I don't know how I can tell it the url to redirect the user when he logs in.
谁能帮我吗?
(另外,在某处有WIF的教程吗?)
Can anyone help me?
(Also, is there a tutorial for WIF somewhere?)
谢谢:)
推荐答案
您可能需要添加 config 节 bellow
You may need to add a config section like bellow
这篇关于设置“返回URL".使用WIF.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!