WPF Launch Browser with Credentials

I am using WPF and C #.

I want to be able to launch a browser window, most likely IE, and provide known credentials so that a Windows-based application can handle the transition from itself to an external browser without re-entering its credentials.

I know how to launch a browser:

System.Diagnostics.Process.Start(url);

My main question is: how can I attach authentication to it? Perhaps by adding headers to it?

Finally, I really don't want to use the new WebBrowser control inside WPF due to its current display issues with a transparent window.

+3
source share
3 answers

1) , "".   - http HTTP-, Fiddler. , HTTP- , .. , HTTP- ​​ , .

2) 2.1) http GET - url . , - , POST https.

2.2) POST, : 2.2.1). html-, javascript, ajax- javascript. , get.

2.2.2) , COM ( WebBrowser)

0

, - . -, URL-, .

0

-: -

  • - .
  • Forms-based authentication is processed using cookies, so the user must have cookies.
  • Windows NTML may be located in the "keychain" of the operating system (remember this password).

Greetings

Phil.

0
source

Source: https://habr.com/ru/post/1714467/


All Articles