<?xml version="1.0" encoding="UTF-8" ?>
<provider id="linkedin">
  <name>LinkedIn®</name>
  <icon>linkedin</icon>
  <domains>*linkedin\.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">www.linkedin.com</setting>
          <setting name="AuthPath">uas/oauth2/authorization?state=sajfhaskncask</setting>
          <setting name="TokenPath">uas/oauth2/accessToken</setting>
          <setting name="ClientId">@LINKEDIN_CONSUMER_KEY@</setting>
          <setting name="ClientSecret">@LINKEDIN_CONSUMER_SECRET@</setting>
          <setting name="RedirectUri">https://www.linkedin.com/</setting>
          <setting name="ResponseType">code</setting>
          <setting type="as" name="Scope">['r_fullprofile',
            'r_emailaddress', 'r_network', 'w_messages', 'rw_nus']</setting>
        </group>
      </group>
    </group>
  </template>
</provider>
