1<?xml version="1.0" encoding="UTF-8" ?> 2<provider id="google"> 3 <_name>Google</_name> 4 <!-- Tooltip text appearing over the button to create this type of account --> 5 <_description>Includes GMail, Hangouts, Google Drive and YouTube</_description> 6 <icon>im-google</icon> 7 <translations>kaccounts-providers</translations> 8 <domains>.*google\.com</domains> 9 10 <template> 11 <group name="auth"> 12 <setting name="method">oauth2</setting> 13 <setting name="mechanism">web_server</setting> 14 <group name="oauth2"> 15 <group name="web_server"> 16 <setting name="Host">accounts.google.com</setting> 17 <setting name="AuthPath">o/oauth2/auth?access_type=offline&approval_prompt=force</setting> 18 <setting name="TokenPath">o/oauth2/token</setting> 19 <setting name="RedirectUri">http://localhost/oauth2callback</setting> 20 <!-- HACK: access_type is non standard, but Google requires it in 21 order to return a refresh token --> 22 <setting name="ResponseType">code</setting> 23 <setting name="Scope" type="as">[ 24 'https://www.googleapis.com/auth/userinfo.email', 25 'https://www.googleapis.com/auth/userinfo.profile', 26 'https://www.googleapis.com/auth/calendar', 27 'https://www.googleapis.com/auth/tasks', 28 'https://www.google.com/m8/feeds/', 29 'https://www.googleapis.com/auth/drive', 30 'https://www.googleapis.com/auth/youtube.upload' 31 ]</setting> 32 <setting name="AllowedSchemes" type="as">['https']</setting> 33 <setting name="ClientId">317066460457-pkpkedrvt2ldq6g2hj1egfka2n7vpuoo.apps.googleusercontent.com</setting> 34 <setting name="ClientSecret">Y8eFAaWfcanV3amZdDvtbYUq</setting> 35 <setting name="ForceClientAuthViaRequestBody" type="b">true</setting> 36 </group> 37 </group> 38 </group> 39 </template> 40</provider> 41