1 | <?php |
||
34 | class ProxyController extends ValidateController { |
||
35 | |||
36 | /** |
||
37 | * Valid ticket types. |
||
38 | * |
||
39 | * `/proxy` checks the validity of the proxy-granting ticket passed. |
||
40 | * |
||
41 | * @var array |
||
42 | */ |
||
43 | protected $validTicketTypes = array( |
||
44 | CAS\Ticket::TYPE_PGT, |
||
45 | ); |
||
46 | |||
47 | /** |
||
48 | * Handles proxy ticket generation requests. |
||
49 | * |
||
50 | * This method attempts to set a `Content-Type: text/xml` HTTP response header. |
||
51 | * |
||
52 | * @param array $request Request arguments. |
||
53 | * @return string Response XML string. |
||
54 | */ |
||
55 | public function handleRequest( $request ) { |
||
75 | |||
76 | /** |
||
77 | * Validates a proxy ticket, returning a ticket object, or throws an exception. |
||
78 | * |
||
79 | * @param string $ticket Service or proxy ticket. |
||
80 | * @param string $service Service URI. |
||
81 | * @return \Cassava\CAS\Ticket Valid ticket object associated with request. |
||
82 | * |
||
83 | * @throws \Cassava\Exception\RequestException |
||
84 | * @throws \Cassava\Exception\TicketException |
||
85 | */ |
||
86 | public function validateRequest( $ticket = '', $service = '' ) { |
||
95 | |||
96 | } |
||
97 |