You are here

public function RedirectDebug::token in Simple OAuth (OAuth2) & OpenID Connect 8.4

Same name and namespace in other branches
  1. 5.x tests/simple_oauth_test/src/Controller/RedirectDebug.php \Drupal\simple_oauth_test\Controller\RedirectDebug::token()

Debug the token response for the implicit grant.

Parameters

\Symfony\Component\HttpFoundation\Request $request: The request.

Return value

\Symfony\Component\HttpFoundation\JsonResponse The response.

1 string reference to 'RedirectDebug::token'
simple_oauth_test.routing.yml in tests/simple_oauth_test/simple_oauth_test.routing.yml
tests/simple_oauth_test/simple_oauth_test.routing.yml

File

tests/simple_oauth_test/src/Controller/RedirectDebug.php, line 23

Class

RedirectDebug
Debug route for the implicit grant.

Namespace

Drupal\simple_oauth_test\Controller

Code

public function token(Request $request) {
  return new JsonResponse($request
    ->getRequestUri());
}