<?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>Connected System with Client Credential Grant</title><link>https://community.appian.com/discussions/f/integrations/20914/connected-system-with-client-credential-grant</link><description>Hi all, 
 We have a connected system with OAuth 2.0 Client Credential Grant. From the connected system we can Authorize with no error. Now, the token we get is valid for 24 hours. The problem is, after 24 hours, the integration calls fail with Authorization</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Connected System with Client Credential Grant</title><link>https://community.appian.com/thread/143445?ContentTypeID=1</link><pubDate>Fri, 06 Dec 2024 15:36:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9c16ea8a-326a-49ce-89e1-3aab36d1b85c</guid><dc:creator>venkatesanr1106</dc:creator><description>&lt;p&gt;Thanks Mathieu ,&amp;nbsp; it would be if you could explain more abt the solution what you are refering here how do we create such in Appian&amp;nbsp; , I thought it is generally usage for CS to use the client credentials grant with regular refresh , is there any existing bug&amp;nbsp; in the system or something else , whether this error is invalid code generated or Appian not handling this responds properly and generate new refresh token&amp;nbsp; , pls advise .&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connected System with Client Credential Grant</title><link>https://community.appian.com/thread/143422?ContentTypeID=1</link><pubDate>Thu, 05 Dec 2024 22:41:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ba210092-f238-496e-9355-a42e16d6d8e0</guid><dc:creator>Mathieu Drouin</dc:creator><description>&lt;p&gt;You&amp;#39;ll probably need a custom CS for this. Standard HTTPS connected system doesn&amp;#39;t support refresh tokens AFAIK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connected System with Client Credential Grant</title><link>https://community.appian.com/thread/143420?ContentTypeID=1</link><pubDate>Thu, 05 Dec 2024 17:40:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a8069898-71c5-4b4c-b1c5-1be18e77f41d</guid><dc:creator>venkatesanr1106</dc:creator><description>&lt;p&gt;Is there any solution for this while using client credentials grant&amp;nbsp; after few hours it looks to me it says request rejected with 200 success message , after authorise it works well and then if it is not used for some time similar things repeat , if it returns 200 will it get new token if not&amp;nbsp; what is the best way to authorise it again automatically and fix this&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connected System with Client Credential Grant</title><link>https://community.appian.com/thread/82611?ContentTypeID=1</link><pubDate>Mon, 14 Jun 2021 19:49:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bc9f65d4-e6fc-4594-bbeb-e5383ab37e06</guid><dc:creator>Anon</dc:creator><description>&lt;p&gt;Its Sharepoint. Yes. I am not using the existing connected systems as the APIs available&amp;nbsp;with the&amp;nbsp; existing Connected System is bit different. I can certainly search for the Sharepoint Connected System. eventually I want to try integration with outlook Calendar as well.&amp;nbsp;All of them follow Microsoft Auth Flow.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connected System with Client Credential Grant</title><link>https://community.appian.com/thread/82607?ContentTypeID=1</link><pubDate>Mon, 14 Jun 2021 16:12:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5aaeb454-af1f-415f-904f-fde37eb28885</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;You are talking to sharepoint. I think there where some discussions lately about an extra configuration step on sharepoint side. Did you find/try that?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connected System with Client Credential Grant</title><link>https://community.appian.com/thread/82606?ContentTypeID=1</link><pubDate>Mon, 14 Jun 2021 15:05:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9fa70565-a4fb-40be-82d0-3a4e448c781a</guid><dc:creator>Anon</dc:creator><description>&lt;p&gt;I will share some screenshots . In my case the authorization is&amp;nbsp; successful . when I am using it in an integration its throwing Unauthorized error 401. I have separately tested it by manually passing the bearer token. If the token is missing it gets 401 and if the token si wrong it gets 403 error . what&amp;#39;s the best way to troubleshoot&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/18/Authorize.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/18/IntegrationFail.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connected System with Client Credential Grant</title><link>https://community.appian.com/thread/82601?ContentTypeID=1</link><pubDate>Mon, 14 Jun 2021 14:41:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7609f2e6-2deb-483e-b749-6782ad8be140</guid><dc:creator>Meelis Kiisk</dc:creator><description>&lt;p&gt;Just use the connected system in the integration call and Appian will automatically take care of the Authorization Bearer token for you during the integration call!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connected System with Client Credential Grant</title><link>https://community.appian.com/thread/82595?ContentTypeID=1</link><pubDate>Mon, 14 Jun 2021 14:03:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:df135f5d-8e41-48b8-a447-b381679b7d6d</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Appian should do that automatically. This is why you define authentication in a separate object. The integration just uses that config.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/21.2/oauth_client_credentials.html"&gt;docs.appian.com/.../oauth_client_credentials.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connected System with Client Credential Grant</title><link>https://community.appian.com/thread/82594?ContentTypeID=1</link><pubDate>Mon, 14 Jun 2021 13:39:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:847ab9d3-fd79-428c-9e4d-337977dce558</guid><dc:creator>Anon</dc:creator><description>&lt;p&gt;Hi Stefan,&lt;/p&gt;
&lt;p&gt;Have you built a Connected system&amp;nbsp;from scratch. I am trying to build one using client credentials ( OAuth2 flows) to retrieve the token. I was able to authorize successfully by passing client credentials, secret, etc . Now, I need to use this connected system to make subsequent API calls.&amp;nbsp; The token needs to be sent as bearer token in the header. I am not sure how do I pass the token value. In fact I don;t even know where is Appian storing it. The documentations on Appian connected systems doesn&amp;#39;t specific anything on this&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connected System with Client Credential Grant</title><link>https://community.appian.com/thread/82591?ContentTypeID=1</link><pubDate>Mon, 14 Jun 2021 12:54:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ef62d78f-bbae-46f5-aeb0-7c697aef38c1</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;By any chance, do they try to do SAML on their end? SAML is meant to work between browser and web server and uses javascript to do browser redirection.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connected System with Client Credential Grant</title><link>https://community.appian.com/thread/82590?ContentTypeID=1</link><pubDate>Mon, 14 Jun 2021 12:41:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c60e28a1-262d-4d23-bd3b-2c2b96c518f8</guid><dc:creator>Meelis Kiisk</dc:creator><description>&lt;p&gt;Stefan,&lt;/p&gt;
&lt;p&gt;I agree - thank you for confirming my assumptions here, since my oAuth knowledge is limited, but I did read the spec and it does seem that we should retrieve 401/403 error back from the API, which would prompt Appian to auto-renew the JWT (authorization bearer) token&lt;/p&gt;
&lt;p&gt;This is for a new integration with SAP...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connected System with Client Credential Grant</title><link>https://community.appian.com/thread/82581?ContentTypeID=1</link><pubDate>Mon, 14 Jun 2021 09:10:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d9be2f37-64f1-4825-9894-249bdfad381a</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;I think a server returning a 200 code in case it cannot authenticate the user is just wrong and violates the HTTP protocol. I mean, we are talking about APIs here. How is the chance that a user is hitting the API endpoint with a browser?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connected System with Client Credential Grant</title><link>https://community.appian.com/thread/82578?ContentTypeID=1</link><pubDate>Mon, 14 Jun 2021 07:50:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:064d619a-b484-448f-8623-56398737dba4</guid><dc:creator>aksharc</dc:creator><description>&lt;p&gt;No. For now, what I did is to create a process model which fetches the token every few hours and save it on the constant. I raised an enhancement request as well with Appian.&lt;/p&gt;
&lt;p&gt;We have internal OData API servers which uses OAuth authentication!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connected System with Client Credential Grant</title><link>https://community.appian.com/thread/82544?ContentTypeID=1</link><pubDate>Fri, 11 Jun 2021 09:57:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1d47170b-fd83-4ad5-852c-3117c4ccdea4</guid><dc:creator>Meelis Kiisk</dc:creator><description>&lt;p&gt;This was a while back - have you been able to find a solution?&lt;/p&gt;
&lt;p&gt;Seeing a similar thing in one of the integrations - if I were to guess - when we call the resource server, then Appian expects a 401/403 response from the integration call, but most likely the resource server API returns another code, e.g. 200 (success) code with an HTML page trying to redirect to authorize. The issue with this would be that this does not prompt Appian to retrieve a new Bearer access token from the Authorization server&lt;/p&gt;
&lt;p&gt;RFC 6749&amp;nbsp;&lt;a href="https://www.rfc-editor.org/rfc/rfc6749.txt"&gt;https://www.rfc-editor.org/rfc/rfc6749.txt&lt;/a&gt;&amp;nbsp;section 1.5 covers Refreshing an Expired Access Token&lt;/p&gt;
&lt;p&gt;Just curious - what system are you connecting to?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>