~dobey/githubuntu/trunk

« back to all changes in this revision

Viewing changes to account-plugin/github.provider

  • Committer: Rodney Dawes
  • Date: 2014-03-03 14:49:12 UTC
  • Revision ID: dobey@wayofthemonkey.com-20140303144912-tp00uy4312bp8nx4
Import the account plug-in for Online Accounts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="UTF-8"?>
 
2
<provider id="google">
 
3
  <name>GitHub</name>
 
4
  <icon>github</icon>
 
5
  <domains>.*github\.com</domains>
 
6
  <plugin>generic-oauth</plugin>
 
7
 
 
8
  <template>
 
9
    <group name="auth">
 
10
      <setting name="method">oauth2</setting>
 
11
      <setting name="mechanism">web_server</setting>
 
12
      <group name="oauth2">
 
13
        <group name="web_server">
 
14
          <setting name="Host">github.com</setting>
 
15
          
 
16
          <setting name="AuthPath">login/oauth/authorize</setting>
 
17
          <setting name="TokenPath">login/oauth/access_token</setting>
 
18
          <setting name="RedirectUri">https://www.ubuntu.com/</setting>
 
19
          <setting name="ResponseType">code</setting>
 
20
          <setting type="as" name="Scope">['notifications','user:follow']</setting>
 
21
          <setting name="ClientId">a09a89fb9445bc349ca2</setting>
 
22
          <setting name="ClientSecret">9b68efe0335ab3054783dc7715eb7140cea3595e</setting>
 
23
          <setting type="as" name="AllowedSchemes">['https']</setting>
 
24
        </group>
 
25
      </group>
 
26
    </group>
 
27
  </template>
 
28
</provider>