| <?php |
|
|
| namespace Kanboard\User; |
|
|
| use Kanboard\Core\User\UserProviderInterface; |
|
|
| |
| |
| |
| |
| |
| |
| abstract class OAuthUserProvider implements UserProviderInterface |
| { |
| |
| |
| |
| |
| |
| |
| protected $user = array(); |
|
|
| |
| |
| |
| |
| |
| |
| public function __construct(array $user) |
| { |
| $this->user = $user; |
| } |
|
|
| |
| |
| |
| |
| |
| |
| public function isUserCreationAllowed() |
| { |
| return false; |
| } |
|
|
| |
| |
| |
| |
| |
| |
| public function getInternalId() |
| { |
| return 0; |
| } |
|
|
| |
| |
| |
| |
| |
| |
| public function getExternalId() |
| { |
| return isset($this->user['id']) ? $this->user['id'] : ''; |
| } |
|
|
| |
| |
| |
| |
| |
| |
| public function getRole() |
| { |
| return ''; |
| } |
|
|
| |
| |
| |
| |
| |
| |
| public function getUsername() |
| { |
| return ''; |
| } |
|
|
| |
| |
| |
| |
| |
| |
| public function getName() |
| { |
| return isset($this->user['name']) ? $this->user['name'] : ''; |
| } |
|
|
| |
| |
| |
| |
| |
| |
| public function getEmail() |
| { |
| return isset($this->user['email']) ? $this->user['email'] : ''; |
| } |
|
|
| |
| |
| |
| |
| |
| |
| public function getExternalGroupIds() |
| { |
| return array(); |
| } |
|
|
| |
| |
| |
| |
| |
| |
| public function getExtraAttributes() |
| { |
| return array(); |
| } |
| } |
|
|