You are here

RedirectDebug.php in Simple OAuth (OAuth2) & OpenID Connect 8.4

Same filename and directory in other branches
  1. 5.x tests/simple_oauth_test/src/Controller/RedirectDebug.php

File

tests/simple_oauth_test/src/Controller/RedirectDebug.php
View source
<?php

namespace Drupal\simple_oauth_test\Controller;

use Drupal\Core\Controller\ControllerBase;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Request;

/**
 * Debug route for the implicit grant.
 */
class RedirectDebug extends ControllerBase {

  /**
   * Debug the token response for the implicit grant.
   *
   * @param \Symfony\Component\HttpFoundation\Request $request
   *   The request.
   *
   * @return \Symfony\Component\HttpFoundation\JsonResponse
   *   The response.
   */
  public function token(Request $request) {
    return new JsonResponse($request
      ->getRequestUri());
  }

}

Classes

Namesort descending Description
RedirectDebug Debug route for the implicit grant.