<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://sugarclub.sugarcrm.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>suddenly get auto logged out from Sugar with a status of 412 (Precondition Failed)</title><link>https://sugarclub.sugarcrm.com/dev-club/f/questions-answers/4531/suddenly-get-auto-logged-out-from-sugar-with-a-status-of-412-precondition-failed</link><description>Hi, I just got auto looged out SugarCRM. Then I see the browser console, I found an error in some Rest API 
 
 
 
 
 
 
 
 
 
 
 
 https://xyz.com/rest/v11_10/Contacts?erased_fields=true&amp;amp;view=list&amp;amp;fields=lead_source%2Cfollowing%2Cmy_favorite&amp;amp;max_num=20</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: suddenly get auto logged out from Sugar with a status of 412 (Precondition Failed)</title><link>https://sugarclub.sugarcrm.com/thread/22630?ContentTypeID=1</link><pubDate>Tue, 02 Mar 2021 14:13:12 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:d129aa4c-b1fe-45cb-ac70-5e53b870d473</guid><dc:creator>Francesca Shiekh</dc:creator><description>&lt;p&gt;It sounds like this is linked to your other post?&lt;/p&gt;
&lt;p&gt;&lt;a href="/dev-club/f/questions-answers/4511/user-logout-issues-when-using-rest-ap/22628#22628"&gt;https://sugarclub.sugarcrm.com/dev-club/f/questions-answers/4511/user-logout-issues-when-using-rest-ap/22628#22628&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;As others have said, you should&amp;nbsp;not need to use OAuth inside Sugar, your user was&amp;nbsp;already be authenticated when they logged into the application. Try to work within the framework, look at Sidecar (&lt;a href="https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_10.2/User_Interface/Sidecar/"&gt;https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_10.2/User_Interface/Sidecar/&lt;/a&gt;) and SugarBean (&lt;a href="https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_10.2/Data_Framework/Models/SugarBean/)"&gt;support.sugarcrm.com/.../)&lt;/a&gt; to start with. They should provide you with what you need to interact with records.&lt;/p&gt;
&lt;p&gt;Francesca&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>