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
- unable to run C:\ProgramData\ComposerSetup\bin\composer.phar create-project symfony/skeleton C:\Users\EMMANUEL\projet_symfony --no-interaction
- 500 internal server error (only when i try to validate a cart)
- Running composer installation in a Symfony 3.2 project on a machine that shares 2 environments
- How to rebuild site after editing twig files?
- Symfony 2.3.1 - arrange label in two rows
- Cannot test Swift_Mailer because service already initialized or test. alias ignored
- Symfony 2, autoload.php generated in wrong directory
- How do I use cookie for Locale and redirect according to Locale in LocaleEventListener in Symfony 3
- loading Javascript referenced in a static web page via Twig
- How to add another field value to entry_options
- how to configure SwiftMailer in symfony 2?
- Accessing JSON body of POST request in Symfony 2.3 controller
- insert row in table with twig
- Why Doctrine Param_str_array conversion is not working as expected?
- Symfony getData() return null value
Related Questions in FOSUSERBUNDLE
- The password is erased as another listener already used this badge
- Error when I try to log in to my symfony 5 project with FOSUserBundle
- FOSUser + LexikJWT still returning 401 (Full authentication is required to access this resource.)
- How to refresh the fos_user token every time a user submits a reset request?
- Migrate Symfony from FOSUserBundle to Security
- Symfony 2 CSRF issue
- Symfony 3.4 - Dependency Injection for ResettingController of FosUserBundle work only in dev env
- Symfony 4/JMS/FOSUser: Can't serialize datas from FOS\UserBundle
- symfony 4.4 sonata admin and sonata user compatible issue
- FOSUserBundle - Update email address and email canonical not working
- Argument #1 ($userProvider) must be of type ... UserProviderInterface
- Cannot serialize Symfony\Component\Cache\Adapter\AbstractAdapter
- security.context service is missing in a Symfony3 app
- Return custom error message when user not enabled
- Getting anon when trying to get loogged in user [Symfony 3.4] FOSUserBundke+Lexik+FosRest
Related Questions in HWIOAUTHBUNDLE
- OAuth2: Force HWIOAuthBundle install with Symfony 6.3
- Use HWIOAUTHBundle with LexikJWT in a api-platform project
- symfony 6 unable to install hwi/oauth-bundle
- HWIOAuthBundle add token attribute after success auth
- How do I have HWI OAuth Bundle behave well in a containerized application behind a reverse proxy?
- Can the permission to access user's profile picture be removed in Facebook login oauth?
- Symfony 5: Connect to Azure with HWIOAuthBundle: An authentication exception occurred
- AOuth login can't store session token, but userdata is stored correctly in DB with HWIAOuthBundle
- how can i solve below symfony dependency error
- How to setup HWIOAuthBundle with Symfony4.3?
- How to install HWIOAuthBundle in Symfony4.3?
- how to set routing prefix for dosuserbundle and hwiauthbundle (ERR_TOO_MANY_REDIRECTS)
- composer could not resolve dependencies for hwi/oauth-bundle
- Azure authentication Symfony
- You must setup php-http/httplug-bundle to use the default http client service Symfony 4.2.4
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 # Hahtags
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