You are here

ClientCredentials.php in Simple OAuth (OAuth2) & OpenID Connect 5.x

Same filename and directory in other branches
  1. 8.4 src/Plugin/Oauth2Grant/ClientCredentials.php

File

src/Plugin/Oauth2Grant/ClientCredentials.php
View source
<?php

namespace Drupal\simple_oauth\Plugin\Oauth2Grant;

use Drupal\simple_oauth\Plugin\Oauth2GrantBase;
use Drupal\simple_oauth\Grant\ClientCredentialsOverrideGrant;

/**
 * The client credentials grant plugin.
 *
 * @Oauth2Grant(
 *   id = "client_credentials",
 *   label = @Translation("Client Credentials")
 * )
 */
class ClientCredentials extends Oauth2GrantBase {

  /**
   * {@inheritdoc}
   */
  public function getGrantType() {
    return new ClientCredentialsOverrideGrant();
  }

}

Classes

Namesort descending Description
ClientCredentials The client credentials grant plugin.