Mar*_*dro 5 gmail symfony hwioauthbundle
我正在使用hwi-oauth软件包登录社交网络帐户,但我遇到登录gmail的问题,当我已经连接到网络时,应该直接进入系统的第一个屏幕,这个在连接Facebook时发生.但是当我连接Gmail时,它总是要求允许应用程序,而不仅仅是第一次.有谁知道为什么gmail总是要求许可?这是我的系统或Gmail帐户中的设置?
尝试在您的资源所有者配置中设置该approval_prompt参数auto。默认值应该是force.
例子:
hwi_oauth:
firewall_name: main
resource_owners:
google:
type: google
client_id: xxxxxxxxxxxx.apps.googleusercontent.com
client_secret: vX6qyxxxxxxxxxxxxxxI6Qn7
scope: "https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile"
options:
approval_prompt: auto
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
388 次 |
| 最近记录: |