Connect to gmail using hwi / oauth-bundle

I use hwi-oauth bundle to log in with accounts on social networks, but I have a problem logging in to gmail, when I’m already connected to networks, I have to go directly to the first screen of the system, and this happens when I connect facebook. But when I connect Gmail, it always asks to allow the application not only for the first time. Does anyone know why gmail always asks for permission? Is this a setting on my system or gmail account?

+5
source share
1 answer

Try setting the approval_prompt parameter to auto in the resource owner setting. 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 
+1
source

Source: https://habr.com/ru/post/1236042/


All Articles