wohali/ips4-oauth2-server

Avatar not retrieved and used by Rocket.Chat

JohnnyKing94 opened this issue · 1 comments

Just an info, why rocket.chat doesn't use the avatar of IPS?
Is the avatar not a data retrieved by rocket.chat?

Correct. Rocket.Chat would need to be modified. It's not a bug of my project. We provide the avatar in the user.profile scope, and Django can use it.

if ( in_array( 'user.profile', $scope ) ) {
$profile = array_merge ( $profile, array (
'id' => $member->member_id,
'username' => $member->name,
'displayName' => $member->name,
'profileUrl' => strval($member->url()),
'avatar' => $member->get_photo()
) );