gpt4 book ai didi

symfony - 使用 hwi/oauth-bundle 连接到 gmail

转载 作者:行者123 更新时间:2023-12-04 21:37:51 25 4
gpt4 key购买 nike

我正在使用 hwi-oauth bundle 登录社交网络帐户,但是我在登录 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

关于symfony - 使用 hwi/oauth-bundle 连接到 gmail,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33734285/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com