For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!
Looks like the OAuth token currently lasts for 3600 seconds. Is there a way to change this?
Yes
Development Tutorial: Creating an Image Gallery
Note:
You can modify the default OAuth access token duration (or lifetime) for all the generated access tokens. To achieve this, add the security.oauth.tokenLifetime entry to the defaults.xml configuration file in the following way, with the OAuth access token duration specified in seconds:
security.oauth.tokenLifetime
defaults.xml
<entry key="security.oauth.tokenLifetime”>600</entry>
Thanks!
no problem, and sorry for the late response!
Jeff,
I was having a similar problem so I am jumping in on this thread -I tried this and it is still expiring. I just changed this to <entry key="security.oauth.tokenLifetime”>315360000</entry> so as to last 10 years and it still appears to be expiring. When I created the new token and allowed access I get &expires_in=315360000&state= in the token confirmation. Any idea as to what the problem may be on my end?
Ed
Disregard, this is working.