<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic RE: Using Network Credentials in BP Web API in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Using-Network-Credentials-in-BP-Web-API/m-p/51436#M6493</link>
    <description>&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/833"&gt;@ewilson&lt;/a&gt;, can you please give an example of such an option? I have similar case with as posted above. I'm using NTLM scheme. So far I' ve been using a code stage, but I would like to know if&amp;nbsp; it is possible to use the embedded Web API in this case.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Tomasz Sukiennik&lt;BR /&gt;RPA Developer&lt;BR /&gt;Digital Teammates&lt;BR /&gt;Europe/Lodz&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Fri, 04 Dec 2020 22:15:00 GMT</pubDate>
    <dc:creator>toms1985</dc:creator>
    <dc:date>2020-12-04T22:15:00Z</dc:date>
    <item>
      <title>Using Network Credentials in BP Web API</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Using-Network-Credentials-in-BP-Web-API/m-p/51434#M6491</link>
      <description>Hi Guys,&amp;nbsp;&lt;BR /&gt;I am having difficulty calling an API on Blue Prism. the API uses network Credentials. In C#, the code below does the job for me, But am unable to archive same using the Web API Services on Blue Prism.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Please is they any work around it, or do i have to write a custom object for this purpose?&lt;BR /&gt;
&lt;P&gt;&lt;BR /&gt;Thanks.&lt;/P&gt;
&lt;PRE class="language-csharp"&gt;&lt;CODE&gt;    var _data = new Data();
    var userName = _username;
    var password = _password;

            
    var credentials = new NetworkCredential(userName, password);
    using (var httpClient = new HttpClient(new HttpClientHandler { Credentials = credentials }))
            {
              
                httpClient.DefaultRequestHeaders.Accept.Add(MediaTypeWithQualityHeaderValue.Parse("application/json;odata=verbose"));
                var response = await httpClient.GetAsync(endpointUrl2);

                if (response.IsSuccessStatusCode)
                {

                    string apiResponse = await response.Content.ReadAsStringAsync();
                    _data = JsonConvert.DeserializeObject&amp;lt;Data&amp;gt;(apiResponse);
                }
            }​&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Samuel Ezeala &lt;BR /&gt;Software Engineer | RPA Developer&lt;BR /&gt;eProcess, Ecobank Group&lt;BR /&gt;Lagos, Nigeria&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 16 Nov 2020 14:46:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Using-Network-Credentials-in-BP-Web-API/m-p/51434#M6491</guid>
      <dc:creator>SamuelEzeala</dc:creator>
      <dc:date>2020-11-16T14:46:00Z</dc:date>
    </item>
    <item>
      <title>RE: Using Network Credentials in BP Web API</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Using-Network-Credentials-in-BP-Web-API/m-p/51435#M6492</link>
      <description>The NetworkCredentials class supports a couple different authentication schemes including &lt;SPAN&gt;basic, digest, NTLM, and Kerberos. Do you know what specific scheme is being used in your network?&lt;BR /&gt;&lt;BR /&gt;The WebAPI services feature supports HTTP Basic, token, OAuth2 Client, and OAuth2 JWT. If your network/web service is just using HTTP Basic, you should be good. There is an option to pre-send the authentication request as opposed to the traditional challenge/response format, so that may be something to consider.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Eric Wilson&lt;BR /&gt;Director, Partner Integrations for Digital Exchange&lt;BR /&gt;Blue Prism&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 20 Nov 2020 14:34:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Using-Network-Credentials-in-BP-Web-API/m-p/51435#M6492</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2020-11-20T14:34:00Z</dc:date>
    </item>
    <item>
      <title>RE: Using Network Credentials in BP Web API</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Using-Network-Credentials-in-BP-Web-API/m-p/51436#M6493</link>
      <description>&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/833"&gt;@ewilson&lt;/a&gt;, can you please give an example of such an option? I have similar case with as posted above. I'm using NTLM scheme. So far I' ve been using a code stage, but I would like to know if&amp;nbsp; it is possible to use the embedded Web API in this case.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Tomasz Sukiennik&lt;BR /&gt;RPA Developer&lt;BR /&gt;Digital Teammates&lt;BR /&gt;Europe/Lodz&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 04 Dec 2020 22:15:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Using-Network-Credentials-in-BP-Web-API/m-p/51436#M6493</guid>
      <dc:creator>toms1985</dc:creator>
      <dc:date>2020-12-04T22:15:00Z</dc:date>
    </item>
    <item>
      <title>RE: Using Network Credentials in BP Web API</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Using-Network-Credentials-in-BP-Web-API/m-p/51437#M6494</link>
      <description>&lt;A class="user-content-mention" data-sign="@" data-contactkey="d69bffe1-734a-47df-a154-7c9754d12d30" data-tag-text="@Tomasz Sukiennik" href="https://community.blueprism.com/network/profile?UserKey=d69bffe1-734a-47df-a154-7c9754d12d30" data-itemmentionkey="5ae486f4-b2df-4287-a4e4-b489f84553fe"&gt;@Tomasz Sukiennik&lt;/A&gt; I don't believe you'll be able to use the Web API feature unless you implement a different form of authentication in the web service itself. In other words, if you set it up to use an OAuth2 provider, a bearer token scheme, or even HTTP Basic (which is generally not recommended as it's not very secure)&amp;nbsp; then you could use the Web API feature. &lt;BR /&gt;&lt;BR /&gt;If you have to use NTLM for the authentication against the web service then I think you're stuck with doing it via the code stage you have.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Eric Wilson&lt;BR /&gt;Director, Partner Integrations for Digital Exchange&lt;BR /&gt;Blue Prism&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 07 Dec 2020 16:31:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Using-Network-Credentials-in-BP-Web-API/m-p/51437#M6494</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2020-12-07T16:31:00Z</dc:date>
    </item>
    <item>
      <title>RE: Using Network Credentials in BP Web API</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Using-Network-Credentials-in-BP-Web-API/m-p/51438#M6495</link>
      <description>Thanks for response Eric.&lt;BR /&gt;&lt;BR /&gt;Kind regards&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Tomasz Sukiennik&lt;BR /&gt;RPA Developer&lt;BR /&gt;Digital Teammates&lt;BR /&gt;Europe/Lodz&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 09 Dec 2020 08:52:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Using-Network-Credentials-in-BP-Web-API/m-p/51438#M6495</guid>
      <dc:creator>toms1985</dc:creator>
      <dc:date>2020-12-09T08:52:00Z</dc:date>
    </item>
    <item>
      <title>RE: Using Network Credentials in BP Web API</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Using-Network-Credentials-in-BP-Web-API/m-p/51439#M6496</link>
      <description>&lt;P&gt;Hi, i cant use this, compile error for NetworkCredential? I have reference to System.Net in code option?&lt;/P&gt;
&lt;P&gt;string GetsalesagentbySalesID(string salesId,string userName,string password,string url,string salesId)&lt;BR /&gt;{&lt;BR /&gt;try&lt;BR /&gt;{&lt;BR /&gt;// Initialization. &lt;BR /&gt;responseObj = string.Empty; &lt;BR /&gt;//... &lt;BR /&gt;//Inparameters&lt;BR /&gt;//userName&lt;BR /&gt;//password&lt;BR /&gt;//url&lt;BR /&gt;//salesId&lt;BR /&gt;var credentials = new NetworkCredential(userName, password);&lt;BR /&gt;// Posting. &lt;BR /&gt;using (var httpClient = new HttpClient(new HttpClientHandler { Credentials = credentials }))&lt;BR /&gt;{&lt;BR /&gt;// Setting content type. &lt;BR /&gt;httpClient.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json")); &lt;BR /&gt;//... &lt;BR /&gt;// Initialization. &lt;BR /&gt;&lt;BR /&gt;// HTTP POST &lt;BR /&gt;var response = httpClient.GetAsync(url + salesId);&lt;/P&gt;
&lt;P&gt;// Verification &lt;BR /&gt;if (response.IsSuccessStatusCode)&lt;BR /&gt;{&lt;BR /&gt;responseObj = response.Result.Content.ReadAsStringAsync().Result;&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;return responseObj;&lt;BR /&gt;}&lt;BR /&gt;catch&lt;BR /&gt;{&lt;BR /&gt;return "Error";&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Goran Rosander&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 23 Dec 2020 07:20:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Using-Network-Credentials-in-BP-Web-API/m-p/51439#M6496</guid>
      <dc:creator>GoranRosander</dc:creator>
      <dc:date>2020-12-23T07:20:00Z</dc:date>
    </item>
    <item>
      <title>RE: Using Network Credentials in BP Web API</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Using-Network-Credentials-in-BP-Web-API/m-p/51440#M6497</link>
      <description>&lt;P&gt;Hi Goran,&lt;/P&gt;
&lt;P&gt;have you included an "External Reference" to "System.Net.Http.dll"?&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Tobias Arnold&lt;BR /&gt;RPA Developer&lt;BR /&gt;ITERGO GmbH&lt;BR /&gt;Europe/Duesseldorf&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 23 Dec 2020 08:51:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Using-Network-Credentials-in-BP-Web-API/m-p/51440#M6497</guid>
      <dc:creator>TobiasArnold</dc:creator>
      <dc:date>2020-12-23T08:51:00Z</dc:date>
    </item>
    <item>
      <title>RE: Using Network Credentials in BP Web API</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Using-Network-Credentials-in-BP-Web-API/m-p/51441#M6498</link>
      <description>&lt;P&gt;Yes but i find that the .Net Framework is 4.0 and it must be 4.5 to use &lt;SPAN&gt;HttpClient&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Goran Rosander&lt;BR /&gt;------------------------------&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2020 15:56:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Using-Network-Credentials-in-BP-Web-API/m-p/51441#M6498</guid>
      <dc:creator>GoranRosander</dc:creator>
      <dc:date>2020-12-23T15:56:00Z</dc:date>
    </item>
    <item>
      <title>RE: Using Network Credentials in BP Web API</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Using-Network-Credentials-in-BP-Web-API/m-p/51442#M6499</link>
      <description>&lt;P&gt;Hi &lt;A class="user-content-mention" data-sign="@" data-contactkey="d69bffe1-734a-47df-a154-7c9754d12d30" data-tag-text="@Tomasz Sukiennik" href="https://community.blueprism.com/network/profile?UserKey=d69bffe1-734a-47df-a154-7c9754d12d30" data-itemmentionkey="7a075242-a856-4098-ac7b-9fef13872f46"&gt;@Tomasz Sukiennik&lt;/A&gt;, would you mind sharing the code that you use for NTLM authentication in BP? I have been trying to get several codes to work (including the one posted above by Samuel Ezeala), but I'm getting an error message indicating that asynchronous calls are not working in BP.&lt;/P&gt;
&lt;P&gt;Any guidance that you can provide would be much appreciated! Thanks a lot!&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Martina Kralova&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 25 Jan 2022 17:03:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Using-Network-Credentials-in-BP-Web-API/m-p/51442#M6499</guid>
      <dc:creator>MartinaKralova</dc:creator>
      <dc:date>2022-01-25T17:03:00Z</dc:date>
    </item>
    <item>
      <title>RE: Using Network Credentials in BP Web API</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Using-Network-Credentials-in-BP-Web-API/m-p/51443#M6500</link>
      <description>Hi &lt;A class="user-content-mention" data-sign="@" data-contactkey="d69bffe1-734a-47df-a154-7c9754d12d30" data-tag-text="@Tomasz Sukiennik" href="https://community.blueprism.com/network/profile?UserKey=d69bffe1-734a-47df-a154-7c9754d12d30" data-itemmentionkey="8f65091c-42ba-4219-9c66-ff1f54c6bbab"&gt;@Tomasz Sukiennik&lt;/A&gt;,&lt;BR /&gt;&lt;BR /&gt;Can you share the code that you use for NTLM authentication in BP? I am facing the same issue.&lt;BR /&gt;&lt;BR /&gt;@Eric Wilson: Since this thread is a bit long, is this been implemented somehow in Web APIs now, or do you have any code for the same in BP?&lt;BR /&gt;&lt;BR /&gt;Thanks a lot in advance :)​​​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Manish Rawat&lt;BR /&gt;Project Manager&lt;BR /&gt;Mercer&lt;BR /&gt;New Delhi&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Oct 2022 14:40:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Using-Network-Credentials-in-BP-Web-API/m-p/51443#M6500</guid>
      <dc:creator>ManishRaw</dc:creator>
      <dc:date>2022-10-11T14:40:00Z</dc:date>
    </item>
    <item>
      <title>RE: Using Network Credentials in BP Web API</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Using-Network-Credentials-in-BP-Web-API/m-p/51444#M6501</link>
      <description>Hi &lt;A class="user-content-mention" data-sign="@" data-contactkey="d666ed23-eedd-4996-bd6b-3bed96e53a93" data-tag-text="@Manish Rawat" href="https://community.blueprism.com/network/profile?UserKey=d666ed23-eedd-4996-bd6b-3bed96e53a93" data-itemmentionkey="1d3ef00f-0739-4ded-a4d2-1d6a08927ca6"&gt;@Manish Rawat&lt;/A&gt;,&lt;BR /&gt;&lt;BR /&gt;There's no way to perform NTLM authentication with the standard Web API Services feature. Web API only supports HTTP Basic, OAuth2, and Bearer (aka API Key). If the API you're calling only requires you to pass along an Authentication header with &lt;EM&gt;&lt;STRONG&gt;Bearer [TOKEN]&lt;/STRONG&gt;&lt;/EM&gt; as the value you could use the Microsoft Authentication Library (MSAL) VBO to perform an NTLM​ auth step, get the access token as a response, and then pass in that in with the Web API.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Eric Wilson&lt;BR /&gt;Director, Integrations and Enablement&lt;BR /&gt;Blue Prism Digital Exchange&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Oct 2022 15:19:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Using-Network-Credentials-in-BP-Web-API/m-p/51444#M6501</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2022-10-11T15:19:00Z</dc:date>
    </item>
  </channel>
</rss>

