I'm user HWIOAuthBundle (let's call it MyClient) to connect to a Symfony 2.3.2 OAuth 2 server using FOSOAuthServerBundle (let's call it MyServer). I am able to connect and login and do the requests that I need to but I keep getting booted out of "MyServer" after an hour (401 error). I have done a lot of reading about this issue but can't seem to find a solution.
I'm new to OAuth but I believe that the access_token I'm using expires after an hour.
I was wondering if there is a way to configure both machines to use the refresh token (which expires in 2 years) to "refresh" my access_token when it expires?
I have been unable to find an example on how to do this. Any help would be great.
Cheers