Iam using FOSUserBundle + HWIOAuthBundle and have a problem regarding the accesstoken expired after one hour. Here I am saving my access token in db while each login. How to refresh my access token and update in db? is there any document regarding this?
FOSOUserBundle + HWIOAuthBundle google accesstoken Timeout after a hour
1k Views Asked by Lal Mohan At
1
There are 1 best solutions below
Related Questions in SYMFONY-2.1
- Update session in symfony2 for shoppingg cart
- symfony 2.5 form validation error
- Remember me Functionality is not working in Symfony2
- ow can I fetch the value from mongdb doctrine using id and condition 'enabled'
- How can I set a default value in Doctrinemongodb document?
- Expected response code 250 but got code "", with message "" When sending emails with Amazon SES and Swiftmailer
- Symfony redirect with response
- Logging into form with cURL/PHP
- Symfony - Driver are mandatory if PDO instance
- Trying to create custom block type in orocommerce but I am getting: Could not load a block type "product_variants".
- Symfon2 SensioFrameworkExtraBundle @Template annotation not working
- how to convert the file as to xml
- Sorting views of a CollectionType based on a position field
- How to avoid a lot of queries when counting associated entities with Doctrine?
- Symfony2 remove and save many to many relations
Related Questions in FOSUSERBUNDLE
- HWIOAuthBundle - Can't redirect after successfull connection
- Symfony2 + FOSUserBundle + few subdomains
- Maintain locale after login in Symfony2
- Speedup symfony2 fixtures loading in tests with security.encoder_factory
- Symfony2 FosUserBundle is loosing session
- Add annotation with bundled entity in Symfony
- Symfony2 FOSUserBundle Invalid mapping file on random requests
- FOSbundle + FOSOAuthServerBundle Firewall Configuration
- Symfony FOSRestBundle + WSSE + FOSUserBundle
- Symfony2 + FOSUserbundle + dynamic change validation groups
- How do I secure a Symfony2 REST API
- Symfony2 Firewall: protect /web folder
- ClassNotFoundException Symfony UserBundle
- Append inline scripts inside Twig layout block
- Change role of one user no working with Symfony2
Related Questions in HWIOAUTHBUNDLE
- HWIOAuthBundle - Can't redirect after successfull connection
- Problems with HWIOAuthBundle first example
- OAuth HwioBundle, different socialNetWork
- Symfony2. HWIOauth. Vkontakte. Get profile photo url
- HWIOAuthBundle get birthday, gender after Facebook Login
- HWIOauthBundle not redirecting to desired path after login
- Symfony2 app deployment with HWIOAuth and Capifony
- HWIOAuthBundle Symfony2 get user likes from Facebook
- I'm using symfony2 with HwiAuth bundle for registration
- Send a tweet in symfony2's HWIOAuthBundle
- Timeout Facebook Login with hwioauth bundle : Timeout Gateway 504
- HWIOauthBundle & FOSUserBundle events not firing
- Symfony2 HWIOauthBundle error with response
- HWIOAuthBundle - Symfony2 - Get User Data from Facebook
- Symfony2 HwioAuth - getting full profildetail from linkedin
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I ran into this problem recently! Was using the stored access token to get contacts.
In the service that gets the contacts, it tries with the currently saved token, and if that doesn't work out, it leverages the user's refresh token to generate a new access token.
My travels led me to a setup like this, but I didn't capture the refresh token on signup. So until I had that figured out, I was euchred.
Additionally, you'll need to ask for 'offline' access in the scope, when defining the google resource in HWIOauth, if you want access to that refresh token.
Contact Retrieving Service:
FOSUBProvider
config.yml