简体   繁体   English

通过自动登录重定向到另一个网站

[英]Redirect to another website with automatic login

I have a asp.net web application that uses form-based login, let's call it 'A'. 我有一个使用基于表单的登录的asp.net Web应用程序,我们称它为“ A”。 I have another website that also uses login and password for users, let's call it 'B'. 我有另一个网站也使用用户的登录名和密码,我们称其为“ B”。 I have a scenario in which I want to open B from A and have the user automatically sign in to B. So if user is signed into A, I can get his login info and send it to B, so he doesn't have to sign in again. 我有一种情况,我想从A打开B并让用户自动登录B。因此,如果用户登录到A,我可以获取他的登录信息并将其发送给B,因此他不必再次登录。 I checked and looks like it's poosible in Windows Form application using WebBrowser control. 我检查了一下,发现它在使用WebBrowser控件的Windows Form应用程序中似乎是可行的。 In asp.net If I use Response.Redirect then it takes me to login page, is it possible to send user name and password and sign into B automatically? 在asp.net中,如果我使用Response.Redirect,则需要我登录页面,是否可以发送用户名和密码并自动登录到B?

You can send a username and password along with the Response.Redirect , but there is no out-of-the-box solution. 可以将用户名和密码与Response.Redirect一起发送,但是没有现成的解决方案。 Some websites offer Single-Sign-On procedures, I've seen it used in helpdesk applicationsto which you can redirect your users, and partly in AWS environments. 一些网站提供了单点登录程序,我已经看到它在帮助台应用程序中使用过,您可以将用户重定向到该应用程序,部分在AWS环境中。

They usually receive a highly encrypted "token" in the QueryString which carries the credentials. 他们通常会在带有凭证的QueryString中收到高度加密的“令牌”。

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

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