1
0

UserInfoControllerInterface.php 565 B

1234567891011121314151617181920212223
  1. <?php
  2. namespace OAuth2\OpenID\Controller;
  3. use OAuth2\RequestInterface;
  4. use OAuth2\ResponseInterface;
  5. /**
  6. * This controller is called when the user claims for OpenID Connect's
  7. * UserInfo endpoint should be returned.
  8. *
  9. * ex:
  10. * > $response = new OAuth2\Response();
  11. * > $userInfoController->handleUserInfoRequest(
  12. * > OAuth2\Request::createFromGlobals(),
  13. * > $response;
  14. * > $response->send();
  15. *
  16. */
  17. interface UserInfoControllerInterface
  18. {
  19. public function handleUserInfoRequest(RequestInterface $request, ResponseInterface $response);
  20. }