class UserEntityWithClaims in Simple OAuth (OAuth2) & OpenID Connect 5.x
A user entity with claims.
Hierarchy
- class \Drupal\simple_oauth\Entities\UserEntity implements \League\OAuth2\Server\Entities\UserEntityInterface uses \League\OAuth2\Server\Entities\Traits\EntityTrait
- class \Drupal\simple_oauth\Entities\UserEntityWithClaims implements \OpenIDConnectServer\Entities\ClaimSetInterface
Expanded class hierarchy of UserEntityWithClaims
3 files declare their use of UserEntityWithClaims
- UserClaimsNormalizer.php in src/
Normalizer/ UserClaimsNormalizer.php - UserIdentityProvider.php in src/
OpenIdConnect/ UserIdentityProvider.php - UserInfo.php in src/
Controller/ UserInfo.php
File
- src/
Entities/ UserEntityWithClaims.php, line 11
Namespace
Drupal\simple_oauth\EntitiesView source
class UserEntityWithClaims extends UserEntity implements ClaimSetInterface {
/**
* The claims.
*
* @var array
*/
protected $claims;
/**
* Returns the claims.
*
* @return array
* List of claims.
*/
public function getClaims() {
return $this->claims;
}
/**
* Sets the claims.
*
* @param array $claims
* List of claims.
*/
public function setClaims(array $claims) {
$this->claims = $claims;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
UserEntityWithClaims:: |
protected | property | The claims. | |
UserEntityWithClaims:: |
public | function | Returns the claims. | |
UserEntityWithClaims:: |
public | function | Sets the claims. |