Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Yes, it is possible to specify your own credentials without modifying the current code. It requires a small piece of code from your part though.</p> <p>Create an assembly called <em>SomeAssembly.dll</em> with this class :</p> <pre><code>namespace SomeNameSpace { public class MyProxy : IWebProxy { public ICredentials Credentials { get { return new NetworkCredential("user", "password"); } //or get { return new NetworkCredential("user", "password","domain"); } set { } } public Uri GetProxy(Uri destination) { return new Uri("http://my.proxy:8080"); } public bool IsBypassed(Uri host) { return false; } } } </code></pre> <p>Add this to your config file :</p> <pre><code>&lt;defaultProxy enabled="true" useDefaultCredentials="false"&gt; &lt;module type = "SomeNameSpace.MyProxy, SomeAssembly" /&gt; &lt;/defaultProxy&gt; </code></pre> <p>This "injects" a new proxy in the list, and because there are no default credentials, the WebRequest class will call your code first and request your own credentials. You will need to place the assemble SomeAssembly in the bin directory of your CMS application.</p> <p>This is a somehow static code, and to get all strings like the user, password and URL, you might either need to implement your own <a href="http://msdn.microsoft.com/en-us/library/system.configuration.configurationsection.aspx" rel="noreferrer">ConfigurationSection</a>, or add some information in the <a href="http://msdn.microsoft.com/en-us/library/ms228154.aspx" rel="noreferrer">AppSettings</a>, which is far more easier.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload