~danielholm/+junk/lastfm-online-account

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
<?xml version="1.0" encoding="UTF-8" ?>
<provider id="lastfm">
  <name>Last.fm</name>
  <description>Last.FM support for your system.</description>
  <translations>lastfm-i18n</translations>
  <icon>lastfm</icon>
  <domains>.*last\.fm</domains>
  <plugin>generic-oauth</plugin>

    <template>
	    <group name="auth">
	      <setting name="method">oauth2</setting>
	      <setting name="mechanism">HMAC-SHA1</setting>
	      <group name="oauth2">
	        <group name="HMAC-SHA1">
	          <setting name="RequestEndpoint">http://www.last.fm/api/auth/?api_key=xxx</setting>
	          <setting name="TokenEndpoint">http://www.last.fm/api/auth/?api_key=xxx</setting>
	          <setting name="AuthorizationEndpoint">http://www.last.fm/api/auth/?api_key=xxx&cb=http://example.com</setting>
	          <setting name="Callback">https://wiki.ubuntu.com/</setting>
	          <setting name="ConsumerKey">@LASTM_CONSUMER_KEY@</setting>
	          <setting name="ConsumerSecret">@LASTFM_CONSUMER_SECRET@</setting>
	        </group>
	      </group>
	    </group>
	</template>

</provider>