You are here

public function Scope::getScopeFromRequest in OAuth2 Server 7

File

lib/Drupal/oauth2_server/Scope.php, line 75

Class

Scope
Provides a scope-checking utility to the library.

Namespace

Drupal\oauth2_server

Code

public function getScopeFromRequest(RequestInterface $request) {

  // "scope" is valid if passed in either POST or QUERY
  return $request
    ->request('scope', $request
    ->query('scope'));
}