<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Web API is failing on SAML enabled environment</title><link>https://community.appian.com/discussions/f/integrations/17466/web-api-is-failing-on-saml-enabled-environment</link><description>I have created one Web API on SAML enabled environment (consider as Dev) and want to call it from other environment (consider as Test). 
 On Test I have created integration to call API in which I am using connected system,in authentication I have used</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Web API is failing on SAML enabled environment</title><link>https://community.appian.com/thread/68962?ContentTypeID=1</link><pubDate>Fri, 23 Aug 2019 05:49:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:416745ec-2991-4508-84e2-1d79312c3436</guid><dc:creator>priyankag0001</dc:creator><description>&lt;p&gt;Thanks Peter. It&amp;#39;s worked. I had not added service account into the security group of datastore.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Web API is failing on SAML enabled environment</title><link>https://community.appian.com/thread/68923?ContentTypeID=1</link><pubDate>Wed, 21 Aug 2019 12:30:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6d32d3c7-462d-40ee-87c5-e541323977e9</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;What error are you getting?&lt;/p&gt;
&lt;p&gt;Some things to check:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Is the user in the Service Accounts group? You won&amp;#39;t be able to use an API key unless they belong to this group&lt;/li&gt;
&lt;li&gt;Make sure the user isn&amp;#39;t in the SAML group. This use shouldn&amp;#39;t authenticate using SSO.&lt;/li&gt;
&lt;li&gt;How are you adding the API Key to your request? It should be like this:
&lt;ul&gt;
&lt;li&gt;Header: &amp;quot;Appian-API-Key&amp;quot;&lt;/li&gt;
&lt;li&gt;Value: [API Key]&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;What is the Web API accessing (e.g. write to data store, start process, etc.) Does the user account also have access to the associated design objects? The account will need at least viewer privileges to read / write from a data store and initiator privileges to start a process.&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Web API is failing on SAML enabled environment</title><link>https://community.appian.com/thread/68921?ContentTypeID=1</link><pubDate>Wed, 21 Aug 2019 05:25:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9fbc5b89-ff60-48d0-878e-516dbbe03bc2</guid><dc:creator>priyankag0001</dc:creator><description>&lt;p&gt;Hi guys,&lt;/p&gt;
&lt;p&gt;Thanks for your response, but it&amp;#39;s not working with API Key, I have created service account and given viewers right to web API. &lt;/p&gt;
&lt;p&gt;and currently my requirement is to call this API from another Appian environment only not from any other system.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Web API is failing on SAML enabled environment</title><link>https://community.appian.com/thread/68899?ContentTypeID=1</link><pubDate>Mon, 19 Aug 2019 14:58:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a0113fa1-4c86-48db-b83a-e8d983294ced</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;I should have kept reading in the docs :) I stand corrected, it doesn&amp;#39;t look like you can use session-based authentication for external systems. As mentioned by the commenter below, here&amp;#39;s the relevant part in the docs:&amp;nbsp;&lt;em&gt;If you wish to invoke an Appian Web API from another system, you must use either&amp;nbsp;&lt;strong&gt;API key or basic authentication.&amp;nbsp;&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;/em&gt;So it looks to me like your best bet is to use an API key, that way you don&amp;#39;t have to pass credentials or worry about what the basic authentication credentials are for that user.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Web API is failing on SAML enabled environment</title><link>https://community.appian.com/thread/68897?ContentTypeID=1</link><pubDate>Mon, 19 Aug 2019 14:20:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fa47905c-d6fb-4d92-b80b-3e9c369ff840</guid><dc:creator>juergeng393</dc:creator><description>&lt;p&gt;Hi priyankag0001,&lt;/p&gt;
&lt;p&gt;Calling a web api there are the following methods of authentication possible:&lt;/p&gt;
&lt;p&gt;There are three ways to authenticate users when calling a web API:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/19.2/Web_API_Authentication.html#api-key-authentication"&gt;API key authentication&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/19.2/Web_API_Authentication.html#basic-authentication"&gt;Basic authentication&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/19.2/Web_API_Authentication.html#session-based-authentication"&gt;Session-based authentication&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;If you wish to invoke an Appian Web API from another system, you must use either &lt;strong&gt;API key or basic authentication&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;This is an excerpt of the documentation, can be found here: &lt;a href="https://docs.appian.com/suite/help/19.2/Web_API_Authentication.html"&gt;https://docs.appian.com/suite/help/19.2/Web_API_Authentication.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Hope that helps.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Web API is failing on SAML enabled environment</title><link>https://community.appian.com/thread/68868?ContentTypeID=1</link><pubDate>Fri, 16 Aug 2019 13:40:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:eff92a91-df99-4ec0-994b-c90cfe981b11</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;Can you describe your use case for this? Why would you need to use an integration call from one environment to call a Web API in another Appian environment?&amp;nbsp;If your plan is that your Web API will be called by a system external to Appian, it is better to test using that system and not from one Appian environment to another.&lt;/p&gt;
&lt;p&gt;That being said, if you&amp;nbsp;&lt;strong&gt;do&lt;/strong&gt; plan on using an external system, I&amp;#39;d suggest these 2 ways you can authenticate:&lt;/p&gt;
&lt;p&gt;1) Use session based authentication:&amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/latest/Web_API_Authentication.html#session-based-authentication"&gt;https://docs.appian.com/suite/help/latest/Web_API_Authentication.html#session-based-authentication&lt;/a&gt;. If your session is already established, you shouldn&amp;#39;t need to provide credentials.&lt;/p&gt;
&lt;p&gt;2) Use an API key and service account:&amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/latest/Web_API_Authentication.html#api-key-authentication"&gt;https://docs.appian.com/suite/help/latest/Web_API_Authentication.html#api-key-authentication&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>