ClientAssertionTypeInterface.php 566 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace OAuth2\ClientAssertionType;
  3. use OAuth2\RequestInterface;
  4. use OAuth2\ResponseInterface;
  5. /**
  6. * Interface for all OAuth2 Client Assertion Types
  7. */
  8. interface ClientAssertionTypeInterface
  9. {
  10. /**
  11. * Validate the OAuth request
  12. *
  13. * @param RequestInterface $request
  14. * @param ResponseInterface $response
  15. * @return mixed
  16. */
  17. public function validateRequest(RequestInterface $request, ResponseInterface $response);
  18. /**
  19. * Get the client id
  20. *
  21. * @return mixed
  22. */
  23. public function getClientId();
  24. }