You are here

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\Entities
View 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

Namesort descending Modifiers Type Description Overrides
UserEntityWithClaims::$claims protected property The claims.
UserEntityWithClaims::getClaims public function Returns the claims.
UserEntityWithClaims::setClaims public function Sets the claims.