for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* simpleSAMLphp-casserver is a CAS 1.0 and 2.0 compliant CAS server in the form of a simpleSAMLphp module
*
* Copyright (C) 2013 Bjorn R. Jensen
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
declare(strict_types=1);
namespace SimpleSAML\Module\casserver\Cas\Protocol;
use SimpleSAML\Configuration;
class Cas10
{
/**
* @param \SimpleSAML\Configuration $config
public function __construct(Configuration $config)
}
* @param string $username
* @return string
public function getValidateSuccessResponse(string $username): string
return "yes\n" . $username . "\n";
public function getValidateFailureResponse(): string
return "no\n\n";