<?xml version="1.0" encoding="UTF-8"?>
<provider id="sina">
  <name>Sina</name>
  <icon>sina</icon>
  <translations>account-plugins</translations>
  <domains>.*weibo\.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">api.weibo.com</setting>
          <setting name="AuthPath">oauth2/authorize</setting>
          <setting name="TokenPath">oauth2/access_token</setting>
          <setting name="RedirectUri">https://wiki.ubuntu.com/</setting>
          <setting name="ResponseType">token</setting>
          <setting name="ClientId">@SINA_CLIENT_ID@</setting>
          <setting name="ClientSecret">@SINA_CLIENT_SECRET@</setting>
        </group>
      </group>
    </group>
  </template>
</provider>
