2

I'm using HWIOAuthBundle (with google configuration) for authentication in one of my project.

It works very well most of the time. But at some point when I surf on the application, I get an error about the google_id. It doesn't appear on a specific page but all sudenly (after a period of inactivity). Basically, the google_id that my user provider get is suddenly null. As I'm not able to reproduce the error and it's very difficult to debug.

It seems to come from either the HWIOAuth bundle for which I'm may be using wrong configuration settings or from Symfony 2 session. But I tried changing the session life time and nothing work (as I said I'm not beeing able to reproduce the error on demand. It appears out of the blue...).

Do you have any idea how to solve this issue?

Regards

4

1 回答 1

0

我遇到了同样的问题。从 Google 检索到的访问令牌不再有效,需要刷新。不幸的是,我还没有找到一个好的方法来做到这一点。

于 2014-10-12T17:26:22.883 回答