Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions src/Provider/KeycloakResourceOwner.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,56 @@ public function getName()
return $this->response['name'] ?: null;
}

/**
* Get resource owner email verification
*
* @return bool
*/
public function getEmailVerified()
{
return $this->response['email_verified'] ?? false;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can u use ?: instead of ?? like in other functions

}

/**
* Get resource owner family name
*
* @return string|null
*/
public function getFamilyName()
{
return $this->response['family_name'] ?: null;
}

/**
* Get resource owner given name
*
* @return string|null
*/
public function getGivenName()
{
return $this->response['given_name'] ?: null;
}

/**
* Get resource owner preferred username
*
* @return string|null
*/
public function getPreferredUsername()
{
return $this->response['preferred_username'] ?? null;
}

/**
* Get resource owner picture
*
* @return string|null
*/
public function getPicture()
{
return $this->response['picture'] ?? null;
}

/**
* Return all of the owner details available as an array.
*
Expand Down