Receiving "Authorization Required" when connecting to URL, which requires Authorization

70 views
Skip to first unread message

Slava B

unread,
May 12, 2013, 2:39:20 AM5/12/13
to cefs...@googlegroups.com
Hi,

It is my first try to use SefSharp (version 1.25.0) from WinForm. Everything works fine, however when I try to browse to sites which require Authorization, I receive the following error message: "This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.". Why SefSharp does not open user credentials dialog as the regular browser does? Please help!

Thanks,
Slava

Miral

unread,
May 12, 2013, 7:19:29 PM5/12/13
to cefs...@googlegroups.com
Because CefSharp is an engine, and it lets you handle that sort of thing yourself, in case you want to do fancy things such as using a password store.

You need to provide a RequestHandler and implement IRequestHandler.GetAuthCredentials on it.

Slava B

unread,
May 13, 2013, 11:18:32 AM5/13/13
to cefs...@googlegroups.com
Miral,

Thanks a lot.

Slava.
Reply all
Reply to author
Forward
0 new messages