~danielholm/+junk/lastfm-online-account

« back to all changes in this revision

Viewing changes to data/providers/lastfm.provider

  • Committer: DanielHolm
  • Date: 2014-01-31 20:09:39 UTC
  • Revision ID: d.holmen@gmail.com-20140131200939-5bpr8vw3btzw8akw
Initial code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="UTF-8" ?>
 
2
<provider id="lastfm">
 
3
  <name>Last.fm</name>
 
4
  <description>Last.FM support for your system.</description>
 
5
  <translations>lastfm-i18n</translations>
 
6
  <icon>lastfm</icon>
 
7
  <domains>.*last\.fm</domains>
 
8
  <plugin>generic-oauth</plugin>
 
9
 
 
10
    <template>
 
11
            <group name="auth">
 
12
              <setting name="method">oauth2</setting>
 
13
              <setting name="mechanism">HMAC-SHA1</setting>
 
14
              <group name="oauth2">
 
15
                <group name="HMAC-SHA1">
 
16
                  <setting name="RequestEndpoint">http://www.last.fm/api/auth/?api_key=xxx</setting>
 
17
                  <setting name="TokenEndpoint">http://www.last.fm/api/auth/?api_key=xxx</setting>
 
18
                  <setting name="AuthorizationEndpoint">http://www.last.fm/api/auth/?api_key=xxx&cb=http://example.com</setting>
 
19
                  <setting name="Callback">https://wiki.ubuntu.com/</setting>
 
20
                  <setting name="ConsumerKey">@LASTM_CONSUMER_KEY@</setting>
 
21
                  <setting name="ConsumerSecret">@LASTFM_CONSUMER_SECRET@</setting>
 
22
                </group>
 
23
              </group>
 
24
            </group>
 
25
        </template>
 
26
 
 
27
</provider>
 
 
b'\\ No newline at end of file'