<?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: API Issue &amp;quot;Could not verify the provided CSRF token because your session was not found&amp;quot; in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/API-Issue-quot-Could-not-verify-the-provided-CSRF-token-because/m-p/88654#M39167</link>
    <description>Hi Eric, thank you for suggesting this. Tried with Utility Http 10.0 version and provided bearer token and bearer token flag. No difference. "The remote server returned an error: (403) Forbidden."&amp;nbsp; &amp;nbsp;Tried Http Request , Post actions and the behavior is same.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Need a way to extract the cookie to submit in the subsequent requests. Any other suggestions ?. Thank you.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Prabhakara Kumar Malireddi&lt;BR /&gt;Architect&lt;BR /&gt;Cognizant Technology Services&lt;BR /&gt;America/Chicago&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Thu, 02 Feb 2023 21:06:00 GMT</pubDate>
    <dc:creator>Prabhakara_Kuma</dc:creator>
    <dc:date>2023-02-02T21:06:00Z</dc:date>
    <item>
      <title>API Issue "Could not verify the provided CSRF token because your session was not found"</title>
      <link>https://community.blueprism.com/t5/Product-Forum/API-Issue-quot-Could-not-verify-the-provided-CSRF-token-because/m-p/88648#M39161</link>
      <description>Hi,&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I'm having an issue with an API invocation that needs OAuth 2.0 (JWT Bearer Token) mechanism with CSRF token (refer below link for details). Able to invoke API through postman tool however, having difficulty in invoking the API via Blue prism. Have tried two options on Blue Prism 1. Configure Web API Services and invoke end point 2. Utility-HTTP -&amp;gt; HTTP Request. Able to generate token in 2nd option but unable to invoke API successfully using the token generated. It throws 403 Forbidden error "Could not verify the provided CSRF token because your session was not found"&lt;BR /&gt;The observation is that PostMan is using Bearer &amp;lt;Token&amp;gt; + cookie value. Below is the test script. Not sure how to achieve this in Blue Prism.&amp;nbsp; Unable to use Fiddler as it is restricted in the organization.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;var xsrfcookie = postman.getResponseCookie('XSRF-TOKEN');&lt;BR /&gt;postman.setEnvironmentVariable('xsrf-token',xsrfcookie.value);&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;BR /&gt;CSRF Token setup: &lt;A href="https://www.baeldung.com/postman-send-csrf-token" target="_blank" rel="noopener"&gt;https://www.baeldung.com/postman-send-csrf-token&lt;/A&gt;&lt;/P&gt;
Appreciate your help&lt;BR /&gt;&lt;BR /&gt;Thanks, Prabhakar&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Prabhakara Kumar Malireddi&lt;BR /&gt;Architect&lt;BR /&gt;Cognizant Technology Services&lt;BR /&gt;America/Chicago&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 24 Jan 2023 03:22:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/API-Issue-quot-Could-not-verify-the-provided-CSRF-token-because/m-p/88648#M39161</guid>
      <dc:creator>Prabhakara_Kuma</dc:creator>
      <dc:date>2023-01-24T03:22:00Z</dc:date>
    </item>
    <item>
      <title>RE: API Issue "Could not verify the provided CSRF token because your session was not found"</title>
      <link>https://community.blueprism.com/t5/Product-Forum/API-Issue-quot-Could-not-verify-the-provided-CSRF-token-because/m-p/88649#M39162</link>
      <description>&lt;P&gt;Hi Prabhakara,&lt;/P&gt;
&lt;P&gt;Are you not getting it as part of response on authentication? It sometimes is part of the headers on authentication.&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Gopal Bhaire&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 24 Jan 2023 05:31:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/API-Issue-quot-Could-not-verify-the-provided-CSRF-token-because/m-p/88649#M39162</guid>
      <dc:creator>GopalBhaire</dc:creator>
      <dc:date>2023-01-24T05:31:00Z</dc:date>
    </item>
    <item>
      <title>RE: API Issue "Could not verify the provided CSRF token because your session was not found"</title>
      <link>https://community.blueprism.com/t5/Product-Forum/API-Issue-quot-Could-not-verify-the-provided-CSRF-token-because/m-p/88650#M39163</link>
      <description>Hi Gopal,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks for your help.&amp;nbsp; Yes,&amp;nbsp; i see similar to this: - " dtCookie=xxx-yyyy-dfdfdf-sdfsdf-dfedfdsfsdfdsfsdf; Path=/; Domain=xx.com,PF=ABCDEDD;Path=/;Secure;HttpOnly;SameSite=None" .&amp;nbsp; Tried with value cookie value but didn't work.&amp;nbsp; Am i missing something?&lt;BR /&gt;&lt;BR /&gt;Appreciate your help.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Prabhakara Kumar Malireddi&lt;BR /&gt;Architect&lt;BR /&gt;Cognizant Technology Services&lt;BR /&gt;America/Chicago&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 24 Jan 2023 22:01:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/API-Issue-quot-Could-not-verify-the-provided-CSRF-token-because/m-p/88650#M39163</guid>
      <dc:creator>Prabhakara_Kuma</dc:creator>
      <dc:date>2023-01-24T22:01:00Z</dc:date>
    </item>
    <item>
      <title>RE: API Issue "Could not verify the provided CSRF token because your session was not found"</title>
      <link>https://community.blueprism.com/t5/Product-Forum/API-Issue-quot-Could-not-verify-the-provided-CSRF-token-because/m-p/88651#M39164</link>
      <description>&lt;P&gt;Hi Prabhakara,&lt;/P&gt;
&lt;P&gt;I think the token is part of cookie. You can modify the code to get cookies from the response.&lt;/P&gt;
&lt;P&gt;Make a duplicate of HTTP Request page and try the following code (untested) on line 66, you might have to add one more text output cookies&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE class="language-vbnet"&gt;&lt;CODE&gt;Using response As HttpWebResponse = request.GetResponse()
	  For Each cookie As Cookie In response.Cookies
			cookies += cookie.Name.ToString() + cookie.Value.ToString() + cookie.Path.ToString() + cookie.Domain.ToString()
	  Next&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Gopal Bhaire&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 25 Jan 2023 04:46:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/API-Issue-quot-Could-not-verify-the-provided-CSRF-token-because/m-p/88651#M39164</guid>
      <dc:creator>GopalBhaire</dc:creator>
      <dc:date>2023-01-25T04:46:00Z</dc:date>
    </item>
    <item>
      <title>RE: API Issue "Could not verify the provided CSRF token because your session was not found"</title>
      <link>https://community.blueprism.com/t5/Product-Forum/API-Issue-quot-Could-not-verify-the-provided-CSRF-token-because/m-p/88652#M39165</link>
      <description>&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/52269"&gt;@Prabhakara_Kuma&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;First question I always ask in a situation where someone's having problems using the HTTP VBO for token/apikey authentication is, have you downloaded the latest version of the HTTP VBO from the DX? If you're using the version that came with your Blue Prism installation you are not using the latest one.​&lt;BR /&gt;&lt;BR /&gt;The version available on the DX has a few new options including a flag to signify that a bearer token will be used.&amp;nbsp;&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>Wed, 25 Jan 2023 22:13:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/API-Issue-quot-Could-not-verify-the-provided-CSRF-token-because/m-p/88652#M39165</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2023-01-25T22:13:00Z</dc:date>
    </item>
    <item>
      <title>RE: API Issue "Could not verify the provided CSRF token because your session was not found"</title>
      <link>https://community.blueprism.com/t5/Product-Forum/API-Issue-quot-Could-not-verify-the-provided-CSRF-token-because/m-p/88653#M39166</link>
      <description>Thanks Gopal for the response. Tried to extract cookie but it returns blank for some reason. Same is the case for authentication or API invocation (throws 403 error anyway). Kindly let me know if any other suggestions.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Prabhakara Kumar Malireddi&lt;BR /&gt;Architect&lt;BR /&gt;Cognizant Technology Services&lt;BR /&gt;America/Chicago&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 02 Feb 2023 20:58:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/API-Issue-quot-Could-not-verify-the-provided-CSRF-token-because/m-p/88653#M39166</guid>
      <dc:creator>Prabhakara_Kuma</dc:creator>
      <dc:date>2023-02-02T20:58:00Z</dc:date>
    </item>
    <item>
      <title>RE: API Issue "Could not verify the provided CSRF token because your session was not found"</title>
      <link>https://community.blueprism.com/t5/Product-Forum/API-Issue-quot-Could-not-verify-the-provided-CSRF-token-because/m-p/88654#M39167</link>
      <description>Hi Eric, thank you for suggesting this. Tried with Utility Http 10.0 version and provided bearer token and bearer token flag. No difference. "The remote server returned an error: (403) Forbidden."&amp;nbsp; &amp;nbsp;Tried Http Request , Post actions and the behavior is same.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Need a way to extract the cookie to submit in the subsequent requests. Any other suggestions ?. Thank you.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Prabhakara Kumar Malireddi&lt;BR /&gt;Architect&lt;BR /&gt;Cognizant Technology Services&lt;BR /&gt;America/Chicago&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 02 Feb 2023 21:06:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/API-Issue-quot-Could-not-verify-the-provided-CSRF-token-because/m-p/88654#M39167</guid>
      <dc:creator>Prabhakara_Kuma</dc:creator>
      <dc:date>2023-02-02T21:06:00Z</dc:date>
    </item>
  </channel>
</rss>

