src/Client.php
/**
     * Login selected service with given crendential.
     * You must login first before serviceLogin.
     */
Login selected service with given crendential.
You must login first before serviceLogin.
Login selected service with given crendential . You must login first before serviceLogin .
public function serviceLogin(ServiceBase $service) {
        $client = $this->guzzleClient;
        $service->pre_login();
        $resp = $client->request("GET", self::$cas_login, [
            'query'=>[
                'service'=> $service->get_service()
            ]
        ]);
        parse_str(parse_url($resp->getHeader("Location")[0], PHP_URL_QUERY), $queries);
        return $service->post_login($queries['ticket']);
    }
public function serviceLogin ( ServiceBase $ service ) { $ client = $ this -> guzzleClient ; $ service -> pre_login ( ) ; $ resp = $ client -> request ( " GET " , self :: $ cas_login , [ 'query' => [ 'service' => $ service -> get_service ( ) ] ] ) ; parse_str ( parse_url ( $ resp -> getHeader ( " Location " ) [ 0 ] , PHP_URL_QUERY ) , $ queries ) ; return $ service -> post_login ( $ queries [ 'ticket' ] ) ; }
Login selected service with given crendential.
Login selected service with given crendential .