Passing the Credentials/SessionId to a WPF Frame ControlHi,<br><br>In a standalone application, I am using a WPF Frame control to display the content of a Web URL. Prior to displaying the content, I have methods that login to the server with some user credentials. When displaying the content of the WebUI Frame, I would like provide either the credentials or the session id of my web request in order to prevent it from showing me the Authentication dialog box and the dialog box to accept the server certificate.<br><br>Could some one please suggest how one can modify the webRequest  before the Frame displays the content. I have tried to set the credentials and the session ID in the NavigatingCancelEventHandler. But that did not help either as NavigatingCancelEventArgs only provides a property to get the webrequest, and not update it.<br><br>Regards,<br>Swathi.<br>© 2009 Microsoft Corporation. All rights reserved.Fri, 03 Jul 2009 18:44:55 Z03c9fcf8-8dd6-488d-9a5b-d811056463b2http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/03c9fcf8-8dd6-488d-9a5b-d811056463b2#03c9fcf8-8dd6-488d-9a5b-d811056463b2http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/03c9fcf8-8dd6-488d-9a5b-d811056463b2#03c9fcf8-8dd6-488d-9a5b-d811056463b2Swathi Raohttp://social.msdn.microsoft.com/Profile/en-US/?user=Swathi%20RaoPassing the Credentials/SessionId to a WPF Frame ControlHi,<br><br>In a standalone application, I am using a WPF Frame control to display the content of a Web URL. Prior to displaying the content, I have methods that login to the server with some user credentials. When displaying the content of the WebUI Frame, I would like provide either the credentials or the session id of my web request in order to prevent it from showing me the Authentication dialog box and the dialog box to accept the server certificate.<br><br>Could some one please suggest how one can modify the webRequest  before the Frame displays the content. I have tried to set the credentials and the session ID in the NavigatingCancelEventHandler. But that did not help either as NavigatingCancelEventArgs only provides a property to get the webrequest, and not update it.<br><br>Regards,<br>Swathi.<br>Mon, 04 Aug 2008 13:13:44 Z2008-08-04T13:13:44Zhttp://social.msdn.microsoft.com/Forums/en-US/wpf/thread/03c9fcf8-8dd6-488d-9a5b-d811056463b2#02de4b10-5463-482f-b6ed-540f41b528b3http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/03c9fcf8-8dd6-488d-9a5b-d811056463b2#02de4b10-5463-482f-b6ed-540f41b528b3Chango V. - MSFThttp://social.msdn.microsoft.com/Profile/en-US/?user=Chango%20V.%20-%20MSFTPassing the Credentials/SessionId to a WPF Frame Control What kind of authentication does your server require - cookie-based, digest, Windows Integrated?<br><br>You should be aware that there are two kinds of web requests involved when navigating a Frame to an HTML resource: first, a &quot;managed&quot; WebRequest, then the native Web Browser control's request via WinINet. The two networking stacks are generally independent, so you may have to &quot;prime&quot; WinINet with the authentication information too.<br><br><hr size="1" align="left" width="25%">This posting is provided &quot;AS IS&quot; with no warranties, and confers no rights.Tue, 05 Aug 2008 21:10:31 Z2008-08-05T21:10:31Zhttp://social.msdn.microsoft.com/Forums/en-US/wpf/thread/03c9fcf8-8dd6-488d-9a5b-d811056463b2#20c5a5fb-0c27-421a-9b8b-6eda834c634dhttp://social.msdn.microsoft.com/Forums/en-US/wpf/thread/03c9fcf8-8dd6-488d-9a5b-d811056463b2#20c5a5fb-0c27-421a-9b8b-6eda834c634dSwathi Raohttp://social.msdn.microsoft.com/Profile/en-US/?user=Swathi%20RaoPassing the Credentials/SessionId to a WPF Frame ControlHi Chango,<br><br>The problem is I am trying to create a Single-Sign On mechanism so that once the user is logged in from elsewhere in the application, opening the Frame control to display related data should not ask the user to sign in again. Hence I was trying to find a means to pass either the session id or the user credentials so that the Frame control can automatically authenticate the user.<br><br>What I am still unclear about is how to modify the WebRequest used by the Frame.<br><br>Regards,<br>Swathi.<br><br><br> Mon, 11 Aug 2008 13:57:17 Z2008-08-11T14:00:27Zhttp://social.msdn.microsoft.com/Forums/en-US/wpf/thread/03c9fcf8-8dd6-488d-9a5b-d811056463b2#ea14fa38-70cd-4c65-96a6-711e5cb2f12chttp://social.msdn.microsoft.com/Forums/en-US/wpf/thread/03c9fcf8-8dd6-488d-9a5b-d811056463b2#ea14fa38-70cd-4c65-96a6-711e5cb2f12cjmyczekhttp://social.msdn.microsoft.com/Profile/en-US/?user=jmyczekPassing the Credentials/SessionId to a WPF Frame Control I am trying to do the same thing to log on to a web server that uses digest authentication.  Did you find a solution?Tue, 07 Oct 2008 22:23:10 Z2008-10-07T22:23:10Zhttp://social.msdn.microsoft.com/Forums/en-US/wpf/thread/03c9fcf8-8dd6-488d-9a5b-d811056463b2#be6b4813-6d7e-40ae-8fcc-8a92aa8388e1http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/03c9fcf8-8dd6-488d-9a5b-d811056463b2#be6b4813-6d7e-40ae-8fcc-8a92aa8388e1Prerak Sanghvihttp://social.msdn.microsoft.com/Profile/en-US/?user=Prerak%20SanghviPassing the Credentials/SessionId to a WPF Frame ControlDid anyone find a solution to this issue?  I'm trying to figure out any way to pass credentials to the frame control.  In the Frame.Navigating event, I see that WebRequest is exposed in the EventArgs, but setting credential information there does not seem to work either. <br>Wed, 04 Feb 2009 20:41:36 Z2009-02-04T20:41:36Zhttp://social.msdn.microsoft.com/Forums/en-US/wpf/thread/03c9fcf8-8dd6-488d-9a5b-d811056463b2#2cc2e493-add9-47d2-ae31-01b99d674f6dhttp://social.msdn.microsoft.com/Forums/en-US/wpf/thread/03c9fcf8-8dd6-488d-9a5b-d811056463b2#2cc2e493-add9-47d2-ae31-01b99d674f6dDhiogohttp://social.msdn.microsoft.com/Profile/en-US/?user=DhiogoPassing the Credentials/SessionId to a WPF Frame ControlHow can I do that??<br/><br/>regards<hr class="sig">Dhiogo BrustolinFri, 03 Jul 2009 18:44:54 Z2009-07-03T18:44:54Z