I'm using hwi-oauth bundle to login with accounts of social networks, but I'm having a problem with login to gmail, when I am already connected to the networks, should go straight to the first screen of the system, and this happens when connect the facebook. But when I connect Gmail, it always asks to allow the application, not just the first time. Anyone know why gmail always asks permission? This is a setting on my system, or in gmail account?
Try setting the approval_prompt
parameter to auto
in your resource owner configuration. The default value should be force
.
Example:
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With