<?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: REST API 403 Forbidden after 1 hour in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/REST-API-403-Forbidden-after-1-hour/m-p/117365#M4052</link>
    <description>&lt;P&gt;ah, yes. thank you! So simple.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To answer your question, my application starts up and calls a method to get the token once at the start and then passes that into each subsequent request. I could change this to generate a token each time, but I'm trying post data ~once every 2 seconds and that seems like a lot of unnecessary overhead. Also, this is just a dev solution at the moment ad so the account I'm using has MFA enabled. We could extend the lifetime default to a day, but either way just rewrite the code to catch the forbidden exception and generate a new token. Thanks for your help :)&lt;/P&gt;</description>
    <pubDate>Mon, 23 Jan 2017 11:06:03 GMT</pubDate>
    <dc:creator>cb12</dc:creator>
    <dc:date>2017-01-23T11:06:03Z</dc:date>
    <item>
      <title>REST API 403 Forbidden after 1 hour</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/REST-API-403-Forbidden-after-1-hour/m-p/116716#M4022</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have written a fairly simple .NET application to POST rows continually to a dataset. This works absolutely fine and I couldn't be happier with the performance of the API either. However, I have an annoying issue where after 60 minutes I start to continually get 403 forbidden responses to my requests. This must be due to my access token expiring, but 1 hour seems like an awfully short period of time for this to start happening. Is this expected behaviour? I've seen other people mentioning needing to retrieve a new token every few days, but no one suggesting they have to do so every hour!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CB&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2017 17:38:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/REST-API-403-Forbidden-after-1-hour/m-p/116716#M4022</guid>
      <dc:creator>cb12</dc:creator>
      <dc:date>2017-01-20T17:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: REST API 403 Forbidden after 1 hour</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/REST-API-403-Forbidden-after-1-hour/m-p/117268#M4049</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="20248" data-lia-user-login="cb12" class="lia-mention lia-mention-user"&gt;cb12&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;The token expiration is an AAD behavior and 60 minutes seems by default. Check &lt;A href="https://docs.microsoft.com/en-us/azure/active-directory/active-directory-configurable-token-lifetimes#configurable-token-lifetime-properties" target="_self"&gt;Configurable Token Lifetimes in Azure Active Directory&lt;/A&gt;. For further question on AAD, you'd get better response from the &lt;A href="https://social.msdn.microsoft.com/Forums/azure/en-US/home?forum=windowsazuread" target="_self"&gt;dedicated forum&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By the way, how did you call the REST API to push data? Can you send the request with a new generated token always?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2017 08:04:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/REST-API-403-Forbidden-after-1-hour/m-p/117268#M4049</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2017-01-23T08:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: REST API 403 Forbidden after 1 hour</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/REST-API-403-Forbidden-after-1-hour/m-p/117365#M4052</link>
      <description>&lt;P&gt;ah, yes. thank you! So simple.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To answer your question, my application starts up and calls a method to get the token once at the start and then passes that into each subsequent request. I could change this to generate a token each time, but I'm trying post data ~once every 2 seconds and that seems like a lot of unnecessary overhead. Also, this is just a dev solution at the moment ad so the account I'm using has MFA enabled. We could extend the lifetime default to a day, but either way just rewrite the code to catch the forbidden exception and generate a new token. Thanks for your help :)&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2017 11:06:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/REST-API-403-Forbidden-after-1-hour/m-p/117365#M4052</guid>
      <dc:creator>cb12</dc:creator>
      <dc:date>2017-01-23T11:06:03Z</dc:date>
    </item>
  </channel>
</rss>

