<?xml version="1.0" encoding="UTF-8" ?>
<provider id="sohu">
  <name>Sohu</name>
  <icon>sohu</icon>
  <translations>account-plugins</translations>
  <domains>.*t\.sohu\.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.t.sohu.com</setting>
          <setting name="AuthPath">/oauth2/authorize</setting>
          <setting name="TokenPath">/oauth2/access_token</setting>
          <setting name="RedirectUri">http://www.ubuntukylin.com/</setting>
          <setting name="ResponseType">token</setting>
          <setting type="as" name="Scope">['basic']</setting>
          <setting name="ClientId">@SOHU_CLIENT_ID@</setting>
          <setting name="ClientSecret">@SOHU_CLIENT_SECRET@</setting>
        </group>
      </group>
    </group>
  </template>
</provider>
