如何使用asp .net和jquery创建从一个网站到另一个网站的自动登录 [英] How to create auto-login from one website to another website with asp .net and jquery

查看:92
本文介绍了如何使用asp .net和jquery创建从一个网站到另一个网站的自动登录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是非常新的asp .net与C#,我想从我的网站自动登录到另一个网站,我有用户名和密码,是否可以使用iframe和jquery或任何其他方法我可以使用。我正在使用visual studio 2013

解决方案

有一些方法可以做到这一点

一种方法是将用户凭据(加密)发送到其他网站并通过在目标中使用http模块尝试登录到应用程序,但它不安全。



另一种方式,安全的使用WIF(Windows Identity Foundation) )并且你将拥有SSO(单点登录和单点唱出)功能。使用WIF SDK可以简化生活,因为它可以在双方生成所需的配置,并且只在IdP(身份提供商)方面进行身份验证。



http://www.microsoft.com/en-us/download/details.aspx?id=4451 [ ^ ]

i am very new to asp .net with C#, i want auto-login from my site to another site, i have username and password , is it possible with iframe and jquery or any other method i can use. i am using visual studio 2013

解决方案

There are some ways for doing that
one way is sending user credentials(encrypted) to other site and by using an http module in destination try to login to the application but it is not Secure.

the other way and the secure one is using WIF(Windows Identity Foundation) and with that you will have SSO(Single Sign one and Single sing out) functionality. Using WIF SDK make the life easier because it generates the required configuration in both sides and authentication happens only in IdP(Identity Provider) side.

http://www.microsoft.com/en-us/download/details.aspx?id=4451[^]


这篇关于如何使用asp .net和jquery创建从一个网站到另一个网站的自动登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆