Warning, /network/kaccounts-providers/providers/google.provider.in is written in an unsupported language. File is not indexed.

0001 <?xml version="1.0" encoding="UTF-8" ?>
0002 <provider id="google">
0003   <_name>Google</_name>
0004   <!-- Tooltip text appearing over the button to create this type of account -->
0005   <_description>Includes GMail, Google Drive and YouTube</_description>
0006   <icon>im-google</icon>
0007   <translations>kaccounts-providers</translations>
0008   <domains>.*google\.com</domains>
0009 
0010   <template>
0011     <group name="auth">
0012       <setting name="method">oauth2</setting>
0013       <setting name="mechanism">web_server</setting>
0014       <group name="oauth2">
0015         <group name="web_server">
0016           <setting name="Host">accounts.google.com</setting>
0017           <setting name="AuthPath">o/oauth2/auth?access_type=offline&amp;approval_prompt=force</setting>
0018           <setting name="TokenPath">o/oauth2/token</setting>
0019           <setting name="RedirectUri">http://localhost/oauth2callback</setting>
0020           <!-- HACK: access_type is non standard, but Google requires it in
0021                order to return a refresh token -->
0022           <setting name="ResponseType">code</setting>
0023           <setting name="Scope" type="as">[
0024               'https://www.googleapis.com/auth/userinfo.email',
0025               'https://www.googleapis.com/auth/userinfo.profile',
0026               'https://www.googleapis.com/auth/calendar',
0027               'https://www.googleapis.com/auth/tasks',
0028               'https://www.google.com/m8/feeds/',
0029               'https://www.googleapis.com/auth/drive',
0030               'https://www.googleapis.com/auth/youtube.upload'
0031           ]</setting>
0032           <setting name="AllowedSchemes" type="as">['https']</setting>
0033           <setting name="ClientId">317066460457-pkpkedrvt2ldq6g2hj1egfka2n7vpuoo.apps.googleusercontent.com</setting>
0034           <setting name="ClientSecret">Y8eFAaWfcanV3amZdDvtbYUq</setting>
0035           <setting name="ForceClientAuthViaRequestBody" type="b">true</setting>
0036         </group>
0037       </group>
0038     </group>
0039   </template>
0040 </provider>