I do not get to import the avatar from another drupal login with oauth provider

The configuration of my oauth connector is:

$provider = new stdClass();
$provider->disabled = FALSE; /* Edit this to true to make a default provider disabled initially */
$provider->name = 'usuarios';
$provider->title = 'usuarios';
$provider->url = 'http://usuarios.castillalamancha.es';
$provider->consumer_advanced = array(
'oauth2' => 0,
'signature method' => 'HMAC-SHA1',
'authentication realm' => '',
'request token endpoint' => '/oauth/request_token',
'authorization scope' => '',
'authorization endpoint' => '/oauth/authorize',
'access token endpoint' => '/oauth/access_token',
);
$provider->mapping = array(
'fields' => array(
'uid' => array(
'resource' => 'http://usuarios.castillalamancha.es/oauthlogin/api/usuarios/info',
'method post' => 1,
'field' => 'name',
'querypath' => FALSE,
'sync_with_field' => 'name',
),
'email' => array(
'resource' => 'http://usuarios.castillalamancha.es/oauthlogin/api/usuarios/info',
'method post' => 1,
'field' => 'mail',
'querypath' => FALSE,
'sync_with_field' => 'mail',
),
'name' => array(
'resource' => '',
'method post' => 0,
'field' => '',
'querypath' => FALSE,
'sync_with_field' => '',
),
'avatar' => array(
'resource' => 'http://usuarios.castillalamancha.es/oauthlogin/api/usuarios/info',
'method post' => 1,
'field' => 'picture',
'querypath' => FALSE,
'sync_with_field' => 'picture',
),
),
'format' => 'xml',
);

I can import the user name and e-mail

Does anyone know what is wrong? Thank you very much for your help

Comments

bburg’s picture

Are you trying to determine how to import a user picture from a provider service through the oauth connector? I am also attempting this and it doesn't seem to work for me. I am looking through the module code and I see the provider field for an avatar is defined, but nothing seems to be done with it subsequently. The module is still in beta, so this may be an unimplemented feature. Can the module maintainers confirm this?