<?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>token oauth expired</title><link>https://community.appian.com/discussions/f/integrations/25320/token-oauth-expired</link><description>Good morning colleagues, 
 
 I need to expose a web api with oauth 2 authentication , I manage to do this but the token expires from the external system every so often and I don&amp;#39;t know how to make it regenerate automatically without having to do it manually</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: token oauth expired</title><link>https://community.appian.com/thread/98703?ContentTypeID=1</link><pubDate>Fri, 29 Jul 2022 12:15:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:82aa7f9d-bb53-4c0a-b03d-275eb1bf1150</guid><dc:creator>Ra&amp;#250;l G&amp;#243;mez Moya</dc:creator><description>&lt;p&gt;thaks , &lt;span class="emoticon" data-url="https://community.appian.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: token oauth expired</title><link>https://community.appian.com/thread/98433?ContentTypeID=1</link><pubDate>Tue, 26 Jul 2022 10:38:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9bc8d5a7-3616-41e4-9ac6-63e87bb75bd9</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Just to make sure, you created a Web API object in Appian and set up oAuth 2 authentication following the the documentation below?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/22.2/Web_API_Authentication.html#oauth-2.0-client-credentials-grant"&gt;https://docs.appian.com/suite/help/22.2/Web_API_Authentication.html#oauth-2.0-client-credentials-grant&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Then, another system calls the Appian API and the token expires? Is that correct?&lt;/p&gt;
&lt;p&gt;If yes, oAuth tokens always have a pretty short expiration time and the other system needs to get a new one calling the endpoint /suite/authorization/oauth/token to get a new one.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/22.2/Appian_Administration_Console.html#oauth-20-clients"&gt;docs.appian.com/.../Appian_Administration_Console.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>