You are here

SimpleOauthAuthenticationProviderInterface.php in Simple OAuth (OAuth2) & OpenID Connect 8.2

File

src/Authentication/Provider/SimpleOauthAuthenticationProviderInterface.php
View source
<?php

namespace Drupal\simple_oauth\Authentication\Provider;

use Drupal\Core\Authentication\AuthenticationProviderInterface;
use Symfony\Component\HttpFoundation\Request;

/**
 * @internal
 */
interface SimpleOauthAuthenticationProviderInterface extends AuthenticationProviderInterface {

  /**
   * Gets the access token from the request.
   *
   * @param \Symfony\Component\HttpFoundation\Request $request
   *   The request object.
   *
   * @return bool
   *   TRUE if there is an access token. FALSE otherwise.
   */
  public static function hasTokenValue(Request $request);

}

Interfaces