Home > Back-end >  Known to a third party web site user name password, application of how to open the third party web s
Known to a third party web site user name password, application of how to open the third party web s

Time:09-20

Such as a user clicks a button, and then with a known user name password automatically log on to a web site, and open the login page

CodePudding user response:

Haven't this kind of practice, you need to do is single sign-on, you first need to login is itself, or is nonsense, because now commercial website support qq, only commonly WeChat, pay treasure to the three parties, such as login (oauth2 agreement), if the research and development ability is not enough, just online to find a single sign-on (sso) framework or component, you can, since the research, anyway the login logic is not complicated,

If it is to log in three sides 1 & gt; Crawler was used to simulate the login, and then return the information reverse injection (feasibility is not high, need a domain name such as coordination, involving the cross-domain) 2 & gt; Using programmable browser imitation fortress machine login mode to achieve (feasibility is high, but complex)

CodePudding user response:

1, if this site is other site (non-self), unless it is expressly to receive automatic login account information, or no solution;
2, if it's own web site, the integration of a single sign-on, into account password to jump pages, automatic login page to obtain parameters,

CodePudding user response:

A typical automatic test method, search the selenium Java

Example look at this:

https://www.jianshu.com/p/1e15d2a7d514

CodePudding user response:

refer to the original poster qq_24537309 response:
such as a user clicks a button, and then with a known user name password automatically log on to a web site, and open the login page


You this kind of demand can only be the user password landing embedded in the url is likely to achieve
To now on site safety requirements cannot be achieved this way of containing the user name password, because it is easy to third party intercepts your user name and password, so it is impossible now, unless you own website, but the site security cannot be guaranteed,
  • Related