Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Connect to gmail using hwi / oauth-bundle

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?

like image 410
Marcius Leandro Avatar asked Nov 10 '22 01:11

Marcius Leandro


1 Answers

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
like image 126
sebbo Avatar answered Nov 15 '22 11:11

sebbo