如何用户重定向到ACS默认登录页面 [英] How to redirect user to ACS default login page
问题描述
我使用天蓝色访问控制系统(ACS)
在我的Web应用程序进行身份验证从不同的身份提供商的用户。我成功注册我的应用程序中使用ACS。现在,我删除了与ACS我的全网站的安全性通过从web.config文件内容如下:
I am using azure Access Control System (ACS)
in my web application to authenticate users from different identity providers. I successfully registered my application to use ACS. Now i removed my full website security with ACS by removing following content from web.config file :
<authorization>
<deny users="?" />
</authorization>
删除此我用户无需登录访问我的网站首页后。现在,在我的主页我建立了一个链接签到
。 我想知道如何将我的用户重定向到ACS默认的登录页面,当用户单击该链接登入?(同样,当asp.net应用程序重定向用户ACS登录页面,如果用户不身份验证并试图访问其被授权属性装饰器的)
推荐答案
您可以手动使用SignInRequestMessage类构造URL,或致电
You can either manually construct the URL by using the SignInRequestMessage class, or call
FederatedAuthentication.WSFederationAuthenticationModule.RedirectToIdentityProvider()(IIRC)。
FederatedAuthentication.WSFederationAuthenticationModule.RedirectToIdentityProvider() (IIRC).
这篇关于如何用户重定向到ACS默认登录页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!