<?xml version="1.0" encoding="UTF-8" ?>
<provider id="instagram">
  <name>Instagram</name>
  <icon>instagram</icon>
  <domains>*instagram\.com</domains>
  <translations>account-plugins</translations>
  <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">api.instagram.com</setting>
          <setting name="AuthPath">oauth/authorize</setting>
          <setting name="TokenPath">oauth/access_token</setting>
          <setting name="ClientId">@INSTAGRAM_CLIENT_ID@</setting>
          <setting name="ClientSecret">@INSTAGRAM_CLIENT_SECRET@</setting>
          <setting name="RedirectUri">https://wiki.ubuntu.com/</setting>
          <setting name="ResponseType">code</setting>
          <setting type="as" name="Scope">['likes', 'comments']</setting>
        </group>
      </group>
    </group>
  </template>
</provider>
