~dobey/githubuntu/trunk

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?xml version="1.0" encoding="UTF-8"?>
<provider id="google">
  <name>GitHub</name>
  <icon>github</icon>
  <domains>.*github\.com</domains>
  <plugin>generic-oauth</plugin>

  <template>
    <group name="auth">
      <setting name="method">oauth2</setting>
      <setting name="mechanism">web_server</setting>
      <group name="oauth2">
        <group name="web_server">
          <setting name="Host">github.com</setting>
          
          <setting name="AuthPath">login/oauth/authorize</setting>
          <setting name="TokenPath">login/oauth/access_token</setting>
          <setting name="RedirectUri">https://www.ubuntu.com/</setting>
          <setting name="ResponseType">code</setting>
          <setting type="as" name="Scope">['notifications','user:follow']</setting>
          <setting name="ClientId">a09a89fb9445bc349ca2</setting>
          <setting name="ClientSecret">9b68efe0335ab3054783dc7715eb7140cea3595e</setting>
          <setting type="as" name="AllowedSchemes">['https']</setting>
        </group>
      </group>
    </group>
  </template>
</provider>