<?xml version="1.0" encoding="UTF-8" ?>
<provider id="foursquare">
  <name>Foursquare</name>
  <icon>foursquare</icon>
  <translations>account-plugins</translations>
  <domains>.*foursquare\.com</domains>
  <plugin>generic-oauth</plugin>

  <template>
    <group name="auth">
      <setting name="method">oauth2</setting>
      <setting name="mechanism">user_agent</setting>
      <group name="oauth2">
        <group name="user_agent">
          <setting name="Host">foursquare.com</setting>
          <setting name="AuthPath">/oauth2/authenticate</setting>
          <setting name="RedirectUri">https://wiki.ubuntu.com/</setting>
          <setting name="Display">touch</setting>
          <setting name="ResponseType">token</setting>
          <setting name="ClientId">@FOURSQUARE_CLIENT_ID@</setting>
        </group>
      </group>
    </group>
  </template>
</provider>
